help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Build Emacs but don’t compile elc


From: Eli Zaretskii
Subject: Re: Build Emacs but don’t compile elc
Date: Tue, 03 Aug 2021 15:29:17 +0300

> From: Fu Yuan <casouri@gmail.com>
> Date: Tue, 3 Aug 2021 08:24:48 -0400
> 
> Is there anyway to build Emacs but not compile lisp files?

Building Emacs compiles only the Lisp files that were changed since
the last build.

> Every time I switch branch, I need to re-build Emacs, and compiling elc files 
> takes quite a while. I couldn’t find an option to do so in ./configure, maybe 
> there is an option somewhere that I’m not aware of?

No such option, and there cannot be: modified Lisp files _must_ be
recompiled.

My recommendation is not to switch branches in the same worktree: it
doesn't work very well in Emacs because the rate of changes during
development is very high.  Instead, use "git worktree add" to create a
separate worktree that uses the same .git directory, but tracks a
different branch.  then you can just switch to a different directory
when you need to work on another branch, and the massive recompilation
is avoided.



reply via email to

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