From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46983: 28.0.50; [feature/native] Allow .el files to specify non-default values for native-compilation options Date: Sun, 07 Mar 2021 22:18:05 +0200 Message-ID: <83wnuisooy.fsf@gnu.org> References: <83zgzftt5t.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37619"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46983@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 07 21:19:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lIzrq-0009fO-Q9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Mar 2021 21:19:10 +0100 Original-Received: from localhost ([::1]:45342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIzrp-0002rt-Hr for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Mar 2021 15:19:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIzri-0002qU-Ml for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 15:19:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIzri-0004pl-FU for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 15:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIzri-0007iO-Bz for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 15:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Mar 2021 20:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46983 X-GNU-PR-Package: emacs Original-Received: via spool by 46983-submit@debbugs.gnu.org id=B46983.161514830529591 (code B ref 46983); Sun, 07 Mar 2021 20:19:02 +0000 Original-Received: (at 46983) by debbugs.gnu.org; 7 Mar 2021 20:18:25 +0000 Original-Received: from localhost ([127.0.0.1]:41583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIzr7-0007hD-7b for submit@debbugs.gnu.org; Sun, 07 Mar 2021 15:18:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIzr3-0007gz-VD for 46983@debbugs.gnu.org; Sun, 07 Mar 2021 15:18:23 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36329) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIzqy-0004dl-Pa; Sun, 07 Mar 2021 15:18:16 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4330 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lIzqy-00041f-2I; Sun, 07 Mar 2021 15:18:16 -0500 In-Reply-To: (message from Andrea Corallo on Sun, 07 Mar 2021 19:35:01 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:201775 Archived-At: > From: Andrea Corallo > Cc: Eli Zaretskii , 46983@debbugs.gnu.org > Date: Sun, 07 Mar 2021 19:35:01 +0000 > > Okay dbdc44db15 should allow for `comp-native-driver-options' as > file-local to be captured correctly. Thanks. > I've only added 'gcc_jit_context_add_driver_option' to GCC 9 so we have > to decide what to do when this is not available on older GCC. > > Till today we raised an error as the use of `comp-native-driver-options' > was a deliberate user choice and it's effectiveness was testable with > `comp-native-driver-options-effective-p', but if this becomes part of > source code we should probably transition to a warining? WDYT? I'd say, if this is set in file-local variables, just ignore the setting if it cannot be applied. Is this possible to ignore it in file-local vars, but still signal an error if customized?