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.devel Subject: Re: Finalizing 'inhibit-automatic-native-compilation' Date: Sun, 29 Jan 2023 08:46:15 +0200 Message-ID: <83fsbt96tk.fsf@gnu.org> References: <837cx8cey0.fsf@gnu.org> <83357vauh5.fsf@gnu.org> <837cx6a8me.fsf@gnu.org> <83357ua6ja.fsf@gnu.org> <83zga28ra8.fsf@gnu.org> <86v8kqpcb1.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26013"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Andy Moreton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 29 07:46:45 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 1pM1Sf-0006g7-AV for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Jan 2023 07:46:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pM1SM-0008FX-RG; Sun, 29 Jan 2023 01:46:26 -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 1pM1SL-0008F4-8a for emacs-devel@gnu.org; Sun, 29 Jan 2023 01:46:25 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM1SK-0000mb-WE; Sun, 29 Jan 2023 01:46:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=nJlgMTxRyE8PBcJobymBXg9yr4kaX89yW3TjqAnZMuc=; b=FmgXIIvNXbHI LALFAOkDKiDB7RHy0wPuFmNNK/+qTaHUtAp2SPUymlLmwfaTj9YYdXIcFEaw27U63n4a1QTKHUF/E sKNHyGi5GN2hrBSDPSd7GxJ3n2SYSYHi6snubl88CKkR8ynkies0SIDykSZna2eFTNedvNx9krckJ plCKGBXp4qmVBU010B/NRFT95atYjDeo4qyVoX/kS39YP3zcHDblzMHlbLpoJEodYj2P7CQy7x62N v5JzxAXK17joPqBh1k6Ha6Rt157gC1dSZkHndzB1XyWfPvQPWQ6lhT3jR8ScqnEnyh4Ctrz880IO2 cCEPr1pVN/vqgHSqhvPJCg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM1SK-0003dt-Fq; Sun, 29 Jan 2023 01:46:24 -0500 In-Reply-To: <86v8kqpcb1.fsf@gmail.com> (message from Andy Moreton on Sat, 28 Jan 2023 21:41:06 +0000) 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:302744 Archived-At: > From: Andy Moreton > Date: Sat, 28 Jan 2023 21:41:06 +0000 > > On Sat 28 Jan 2023, Eli Zaretskii wrote: > > > Can we decide that "temporarily" we will write trampolines even if > > native-compilation was disabled, i.e. go back to what we had in Emacs > > 28? > > `comp-enable-subr-trampolines' is also relevant. Yes, of course. > In bug #60996 Windows builds currently error on delete-file for a > trampoline .eln file if inhibit-automatic-native-compilation is non-nil > (because Windows does not allow the .eln file to be deleted while it > is loaded as a DLL). > > If inhibit-automatic-native-compilation is non-nil and > comp-enable-subr-trampolines is nil then the delete-file error is > avoided (at a cost of losing correct handling of advised primitives). Removing comp-enable-subr-trampolines is not on the table. We need that to allow users to start Emacs built with native-compilation when libgccjit and/or Binutils are not available on the system where Emacs is run, something that happens mostly on MS-Windows, but can also happen elsewhere.