unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Build Emacs but don’t compile elc 
@ 2021-08-03 12:24 Fu Yuan
  2021-08-03 12:29 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Fu Yuan @ 2021-08-03 12:24 UTC (permalink / raw)
  To: help-gnu-emacs

Is there anyway to build Emacs but not compile lisp files? 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?

Yuan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Build Emacs but don’t compile elc
  2021-08-03 12:24 Build Emacs but don’t compile elc Fu Yuan
@ 2021-08-03 12:29 ` Eli Zaretskii
  2021-08-03 14:06   ` Fu Yuan
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2021-08-03 12:29 UTC (permalink / raw)
  To: help-gnu-emacs

> 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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Build Emacs but don’t compile elc 
  2021-08-03 12:29 ` Eli Zaretskii
@ 2021-08-03 14:06   ` Fu Yuan
  0 siblings, 0 replies; 3+ messages in thread
From: Fu Yuan @ 2021-08-03 14:06 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs



> 在 2021年8月3日,上午8:30,Eli Zaretskii <eliz@gnu.org> 写道:
> 
> 
>> 
>> 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.

git worktree is the way to do it, thanks!

Yuan 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-03 14:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-03 12:24 Build Emacs but don’t compile elc Fu Yuan
2021-08-03 12:29 ` Eli Zaretskii
2021-08-03 14:06   ` Fu Yuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).