How to disable native compilation? #810
-
|
Do not find a related flag |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
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 ;; Emacs 29+
(setq inhibit-automatic-native-compilation t)This prevents Emacs from compiling 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. |
Beta Was this translation helpful? Give feedback.
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:This prevents Emacs from compiling
.elcfiles to.elnon 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.