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: Building a tarball with native-compilation support Date: Sat, 14 Aug 2021 10:44:25 +0300 Message-ID: <83czqgbhd2.fsf@gnu.org> References: <83r1f8jtlu.fsf@gnu.org> <83wnozhzw1.fsf@gnu.org> <83bl69ixht.fsf@gnu.org> <838s1diwcy.fsf@gnu.org> <837dgxilzs.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16895"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, emacs-devel@gnu.org To: akrl@sdf.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 14 09:45:18 2021 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 1mEoM2-00046T-3X for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Aug 2021 09:45:18 +0200 Original-Received: from localhost ([::1]:47746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEoM0-0003cj-FU for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Aug 2021 03:45:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEoLQ-0002wu-Qn for emacs-devel@gnu.org; Sat, 14 Aug 2021 03:44:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44260) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEoLP-00014s-3A; Sat, 14 Aug 2021 03:44:39 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4652 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 1mEoLO-0000RB-7J; Sat, 14 Aug 2021 03:44:38 -0400 In-Reply-To: <837dgxilzs.fsf@gnu.org> (message from Eli Zaretskii on Sat, 07 Aug 2021 13:32:07 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:272377 Archived-At: > Date: Sat, 07 Aug 2021 13:32:07 +0300 > From: Eli Zaretskii > Cc: larsi@gnus.org, emacs-devel@gnu.org > > > Date: Sat, 07 Aug 2021 09:48:13 +0300 > > From: Eli Zaretskii > > Cc: larsi@gnus.org, emacs-devel@gnu.org > > > > > Date: Sat, 07 Aug 2021 09:23:42 +0300 > > > From: Eli Zaretskii > > > Cc: larsi@gnus.org, emacs-devel@gnu.org > > > > > > So I think a better way would be to write a function in Emacs Lisp > > > that is passed a list of preloaded Lisp files, and natively-compiles > > > those of them whose *.eln files are either outdated or do not exist. > > > > Actually, such a function already exists: native-compile-async. We > > just need to write a suitable function to act as the SELECTOR for it. > > Hmm... I seem to be unable to force native-compile-async to produce > the .eln file under native-lisp/preloaded/. Andrea, how can I do > that? I tried to set native-compile-target-directory, but it didn't > seem to help (??), the resulting .eln file is always under > ~/.emacs.d/eln-cache/ for some reason. > > What am I missing? Andrea, can you help me out here, please? How do I tell native-compile-async to produce the .eln file in native-lisp/preloaded/? TIA