Skip to content
Discussion options

You must be logged in to vote

There's no build flag for this - native compilation is always enabled in emacs-plus@30 and @31.

However, you can disable JIT/deferred native compilation at runtime in your early-init.el:

;; Emacs 29+
(setq inhibit-automatic-native-compilation t)

This prevents Emacs from compiling .elc files to .eln on the fly. The AOT-compiled core files will still be native, but new packages won't trigger background compilation.

That said, native compilation has become much more stable after recent improvements - you may want to give it another try if you had issues before.

See Native-Compilation Variables in the Emacs manual for details.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by d12frosted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants