From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.devel Subject: Re: Suppressing native compilation (short and long term) Date: Sun, 02 Oct 2022 15:05:42 -0500 Message-ID: <87ill2kn3d.fsf@trouble.defaultvalue.org> References: <87bkqxf1ij.fsf@tethera.net> <8335c9dkyf.fsf@gnu.org> <83tu4odez7.fsf@gnu.org> <871qrrpkgx.fsf@trouble.defaultvalue.org> <834jwnbi6c.fsf@gnu.org> <87mtafnun5.fsf@trouble.defaultvalue.org> <83sfk6ahty.fsf@gnu.org> <8735c6b0wo.fsf@gnus.org> <87y1ty9lha.fsf@gnus.org> <87lepym6ok.fsf@trouble.defaultvalue.org> <877d1i9h7k.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3400"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Eli Zaretskii , david@tethera.net, emacs-devel@gnu.org, akrl@sdf.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 02 22:06:44 2022 Return-path: Envelope-to: ged-emacs-devel@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 1of5Ea-0000kw-62 for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 22:06:44 +0200 Original-Received: from localhost ([::1]:46566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of5EY-00066j-Ff for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 16:06:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of5Dd-0005NA-Tj for emacs-devel@gnu.org; Sun, 02 Oct 2022 16:05:45 -0400 Original-Received: from defaultvalue.org ([45.33.119.55]:37482) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of5Dc-0003IP-F6; Sun, 02 Oct 2022 16:05:45 -0400 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id ABDDA2071C; Sun, 2 Oct 2022 15:05:42 -0500 (CDT) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 5A3B114E081; Sun, 2 Oct 2022 15:05:42 -0500 (CDT) In-Reply-To: <877d1i9h7k.fsf@gnus.org> Received-SPF: pass client-ip=45.33.119.55; envelope-from=rlb@defaultvalue.org; helo=defaultvalue.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:296705 Archived-At: Lars Ingebrigtsen writes: > So I'm thinking of introducing a user option like > `native-compile-inhibit', which will make Emacs skip the native-comp > machinery when loading .elc files. It will default to nil, of course, > but perhaps it would be convenient to make it depend on an environment > variable like "NATIVE_COMPILE_INHIBIT"? Then users (and the Debian > build system) could say "NATIVE_COMPILE_INHIBIT=true emacs ..." when > doing testing etc? Would that fit your use case? It might? I'd also suggest adding an EMACS_... prefix to the variable name (of course I'd suggest that for all of any program's variables). Though I'm not positive because if we still really need compilation for the trampolines(?), then we may need to just follow the "redirect to a tempdir" approach, which is also fine, and then the ability to disable native compilation might not be relevant to the packaging. In either case, we might ideally want an EMACS_... var to make propagation a bit easier if that sounds reasonable. -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4