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: Question about native compilation Date: Wed, 09 Jun 2021 21:21:04 +0300 Message-ID: <83r1hadhm7.fsf@gnu.org> References: <20210610.030102.1585779767359400556.yasu@utahime.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3993"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yasuhiro Kimura Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 09 20:22:02 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 1lr2q2-0000mK-Ip for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 20:22:02 +0200 Original-Received: from localhost ([::1]:48950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lr2q1-0002dl-Ea for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 14:22:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lr2pN-0001z5-Rb for emacs-devel@gnu.org; Wed, 09 Jun 2021 14:21:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51058) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lr2pM-0001Ty-IL; Wed, 09 Jun 2021 14:21:20 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1840 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 1lr2pM-00005v-53; Wed, 09 Jun 2021 14:21:20 -0400 In-Reply-To: <20210610.030102.1585779767359400556.yasu@utahime.org> (message from Yasuhiro Kimura on Thu, 10 Jun 2021 03:01:02 +0900 (JST)) 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:270603 Archived-At: > Date: Thu, 10 Jun 2021 03:01:02 +0900 (JST) > From: Yasuhiro Kimura > > all: > emacs -q -batch -f batch-byte-compile *.el > .if ${NATIVE_COMPILE} == yes > emacs -q -batch -f batch-native-compile *.el > .endif It is better to use "-f batch+native-compile", I think. > 1. What is the recommended way to check if executable of Emacs > supports native compilation? emacs -batch --eval "(message \"%s\" system-configuration-features)" | grep NATIVE_COMP > 2. Is there standard place where 3rd party .eln files should be > installed? I expect such directories as > ${prefix}/share/emacs/site-lisp or > ${prefix}/share/emacs/$(version)/site-lisp for .el and .elc files. ${prefix}/share is for architecture-independent files, so it's the wrong place. More importantly: why do you want to install them somewhere? why not let Emacs compile them when they are first used and store them in ~/.emacs.d/eln-cache? I think that's the canonical way at the moment.