From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 21:21:19 +0000 Message-ID: References: <83zgzftt5t.fsf@gnu.org> <83wnuisooy.fsf@gnu.org> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28526"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: eliz@gnu.org To: 46983@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 07 22:22: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 1lJ0qo-0007Iy-1c for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Mar 2021 22:22:10 +0100 Original-Received: from localhost ([::1]:37654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJ0qn-0002NB-2p for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Mar 2021 16:22:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJ0qg-0002Lj-9n for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 16:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJ0qg-0005aU-2Z for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 16:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJ0qf-0000pe-Uw for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 16:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Mar 2021 21:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46983 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Eli Zaretskii , 46983@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16151520883147 (code B ref -1); Sun, 07 Mar 2021 21:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Mar 2021 21:21:28 +0000 Original-Received: from localhost ([127.0.0.1]:41635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJ0q8-0000og-Do for submit@debbugs.gnu.org; Sun, 07 Mar 2021 16:21:28 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:39248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJ0q5-0000oY-WC for submit@debbugs.gnu.org; Sun, 07 Mar 2021 16:21:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJ0q5-0002K8-Qt for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 16:21:25 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:57344) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJ0q2-0005L9-Vc; Sun, 07 Mar 2021 16:21:25 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 127LLJwR016839 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sun, 7 Mar 2021 21:21:19 GMT In-Reply-To: (Andrea Corallo via's message of "Sun, 07 Mar 2021 20:28:44 +0000") Received-SPF: pass client-ip=205.166.94.24; envelope-from=akrl@sdf.org; helo=mx.sdf.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:201786 Archived-At: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > Eli Zaretskii writes: > >>> 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? > > Right we can handle the two cases separately, doing it. Okay 15aa239ba0 should do that. Thanks Andrea