summaryrefslogtreecommitdiff
path: root/modules/tanelorn/packages/patches/emacs-next-disable-jit-compilation.patch
diff options
context:
space:
mode:
authorbdunahu <bdunahu@operationnull.com>2026-03-19 00:11:31 -0400
committerbdunahu <bdunahu@operationnull.com>2026-03-19 00:11:31 -0400
commit820f08e9bf8119999b9f940c69dea8e8f1bf71b2 (patch)
treeb03d08a10e19d05407e7a2e5122b0dffd8de24e3 /modules/tanelorn/packages/patches/emacs-next-disable-jit-compilation.patch
parentb6a2a57db6b24fb35d9555eada25285a15486362 (diff)
tanelorn: Add emacs-next-alpha-fix
* modules/tanelorn/packages/emacs.scm (emacs-next-alpha-fix): New variable. * README: Add emacs-next-alpha-fix.
Diffstat (limited to 'modules/tanelorn/packages/patches/emacs-next-disable-jit-compilation.patch')
-rw-r--r--modules/tanelorn/packages/patches/emacs-next-disable-jit-compilation.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/tanelorn/packages/patches/emacs-next-disable-jit-compilation.patch b/modules/tanelorn/packages/patches/emacs-next-disable-jit-compilation.patch
new file mode 100644
index 0000000..0bac7a2
--- /dev/null
+++ b/modules/tanelorn/packages/patches/emacs-next-disable-jit-compilation.patch
@@ -0,0 +1,19 @@
+Index: emacs-29.2/src/comp.c
+===================================================================
+--- emacs-29.2.orig/src/comp.c
++++ emacs-29.2/src/comp.c
+@@ -5648,8 +5648,12 @@ For internal use. */);
+ doc: /* If non-nil, compile loaded .elc files asynchronously.
+
+ After compilation, each function definition is updated to use the
+-natively compiled one. */);
+- native_comp_jit_compilation = true;
++natively compiled one. This variable is enabled by default upstream,
++but disabled in Guix to better make use of precompiled packages.
++Notably, Guix removes the hashes that prevent inadvertent shadowing
++from the file names of compiled libraries in order to facilitate grafts.
++Enable at your own risk! */);
++ native_comp_jit_compilation = false;
+
+ DEFSYM (Qnative_comp_speed, "native-comp-speed");
+ DEFSYM (Qnative_comp_debug, "native-comp-debug");