dotfiles/patches/emacs-native-comp-driver-options.patch
magic_rb 0b32e14aac
omen: add openssh to nix-daemon
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-10-06 21:05:27 +02:00

16 lines
632 B
Diff

diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 342212f5185..48311d86f40 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -102,7 +102,9 @@ and above."
(defcustom native-comp-driver-options
(cond ((eq system-type 'darwin) '("-Wl,-w"))
- ((eq system-type 'cygwin) '("-Wl,-dynamicbase")))
+ ((eq system-type 'cygwin) '("-Wl,-dynamicbase"))
+ (t '(@backendPath@)))
+
"Options passed verbatim to the native compiler's back-end driver.
Note that not all options are meaningful; typically only the options
affecting the assembler and linker are likely to be useful.