emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about native compilation


From: Eli Zaretskii
Subject: Re: Question about native compilation
Date: Wed, 09 Jun 2021 21:21:04 +0300

> Date: Thu, 10 Jun 2021 03:01:02 +0900 (JST)
> From: Yasuhiro Kimura <yasu@utahime.org>
> 
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]