From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Finalizing 'inhibit-automatic-native-compilation' Date: Mon, 13 Feb 2023 14:17:16 -0500 Message-ID: References: <837cx8cey0.fsf@gnu.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="15973"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org, Lars Ingebrigtsen , Rob Browning To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 13 20:18:03 2023 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 1pReKv-0003wC-94 for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Feb 2023 20:18:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pReKP-0002eo-Gw; Mon, 13 Feb 2023 14:17:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pReKH-0002ds-Ry for emacs-devel@gnu.org; Mon, 13 Feb 2023 14:17:23 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pReKG-0005mb-C7; Mon, 13 Feb 2023 14:17:21 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id CBAF91000DD; Mon, 13 Feb 2023 14:17:18 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 77FED1000BC; Mon, 13 Feb 2023 14:17:17 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1676315837; bh=jHzOspXzZ4OK0jWyEy+knBO/FFjvj5wpm/yIpm8N1zY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ktv7gYhce0sQNg/KiYI7vqAyGT56QgVBwIydLWC9iNC0AeP98Hv5TYES4vWiiEcNh K4vDTJDuyoARD94TWLu7kbDEvU4xX7PMmdhKSZb5/o5ni0XV8/WCbiZ/mUkwrmuh3Z 5IV4zlrGgs8G6OQt23cW7G7CoSJMqlFOYzJVLX7oGIEY2BK8qD/+WufAN8zGve4yzK fcAiN+VloveL8190b3tFjcl01IAwBm7p6bf5CdDzz6+7uiMSOxdXldCCpRopEXs54a 3w63PmT0hDc9fnVgfc9H0EydWXRr2JCPDbN/f7IPbW/izMUwfB45+T7XbDOJ5K/uO4 4t3oe0YNP5cEA== Original-Received: from pastel (104-222-119-84.cpe.teksavvy.com [104.222.119.84]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 46F1E12250E; Mon, 13 Feb 2023 14:17:17 -0500 (EST) In-Reply-To: (Andrea Corallo's message of "Mon, 13 Feb 2023 12:05:09 +0000") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303225 Archived-At: > at feature/inhibit-native-comp-cleanup I've pushed the branch I'm > testing that: > > . removes the EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION environment > variable > . removes `inhibit-automatic-native-compilation' variable and uses > `native-comp-deferred-compilation', with or without > `comp-enable-subr-trampolines' (as needed), instead > . adds a third possible value to `comp-enable-subr-trampolines', a > string that specifies a directory in which to deposit the JIT > compiled trampolines > . updates the doc string of `native-comp-never-optimize-functions' to > mention its effect on trampolines > . updates some do doc here and there accordingly The one thing which I think would help avoid surprises is: when `comp-enable-subr-trampolines` is non-nil (and not a string) and ~/.emacs.d/eln-cache is not writable (e.g. because $HOME doesn't exist) we should produce the trampolines somewhere in `temporary-file-directory` (maybe by setting `comp-enable-subr-trampolines` to an appropriate string) Stefan