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#42761: 28.0.50; [feature/native-comp] allow customizing command line/driver options? Date: Thu, 20 Aug 2020 16:43:50 +0000 Message-ID: References: Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27667"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 42761@debbugs.gnu.org To: Andreas Fuchs Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 20 18:44:14 2020 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 1k8nfh-00075h-4d for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Aug 2020 18:44:13 +0200 Original-Received: from localhost ([::1]:58150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8nfg-0003Qx-4B for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Aug 2020 12:44:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8nfW-0003Mn-PZ for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2020 12:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60483) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k8nfW-0004DG-GY for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2020 12:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k8nfW-0006sP-FH for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2020 12:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Aug 2020 16:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42761 X-GNU-PR-Package: emacs Original-Received: via spool by 42761-submit@debbugs.gnu.org id=B42761.159794183526400 (code B ref 42761); Thu, 20 Aug 2020 16:44:02 +0000 Original-Received: (at 42761) by debbugs.gnu.org; 20 Aug 2020 16:43:55 +0000 Original-Received: from localhost ([127.0.0.1]:43794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8nfP-0006rk-Dz for submit@debbugs.gnu.org; Thu, 20 Aug 2020 12:43:55 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:52203) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8nfM-0006rY-8Y for 42761@debbugs.gnu.org; Thu, 20 Aug 2020 12:43:54 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTP id 07KGhood013404; Thu, 20 Aug 2020 16:43:50 GMT In-Reply-To: (Andreas Fuchs's message of "Thu, 20 Aug 2020 10:12:54 -0400") 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:185726 Archived-At: Andreas Fuchs writes: > Ah! That's a good point about users being unable to tell if their > options will work until they try to compile. > > I would like to keep the driver-option setting interface as a > variable holding a list, as that still allows users to edit them with > the emacs-provided functions to do so. With a function accessor, we'd > have to add functions to add/remove/map over/etc the options, which > emacs already provides with `add-to-list' and friends. > =C2=A0 > I think we could expose a predicate > `comp-native-driver-options-available-p' that'll return t if the > necessary facility exists. > > For some extra credit, maybe we could=C2=A0even have that predicate test > whether a given set of driver options has a chance of succeeding (I > guess that this would have to attempt a no-op compile to exercise the > compiler->linker chain). A predicate to test for compatibility would > be the nicest and would fit the=C2=A0bill well, though. Mmhh I guess a third way would be to expose a function the return a list of all the available and effective features (ATM we have also `comp-libgccjit-version'). Dunno, unless somebody has some formed opinion I'm fine also with exposing for now `comp-native-driver-options-available-p'. Andrea --=20 akrl@sdf.org