summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorAndreas Fuchs <asf@boinkor.net>2020-08-08 16:22:43 -0400
committerAndrea Corallo <akrl@sdf.org>2020-08-19 17:12:21 +0200
commitbec2adebc6a5c4984d52ea7e66a7a3632e7dc578 (patch)
tree6376d4f50fa151be5601d1ef16d800df1d4bf3ec /lisp/emacs-lisp
parent8a931a97b8dd19a38d6f719f810280a07ba76438 (diff)
downloademacs-bec2adebc6a5c4984d52ea7e66a7a3632e7dc578.tar.gz
emacs-bec2adebc6a5c4984d52ea7e66a7a3632e7dc578.tar.bz2
emacs-bec2adebc6a5c4984d52ea7e66a7a3632e7dc578.zip
Pass driver options to libgccjit where supported
Add a customizable variable for driver options (such as linker flags) to pass to libgccjit (Bug #42761). * lisp/emacs-lisp/comp.el (comp-native-driver-options): New customization variable. * src/comp.c: Use comp-native-driver-options to set libgccjit's driver options, if supported on the library's ABI version.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/comp.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 3176351b37d..37559c20dd4 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -134,6 +134,16 @@ before compilation. Usable to modify the compiler environment."
:type 'list
:group 'comp)
+(defcustom comp-native-driver-options nil
+ "Options passed verbatim to the native compiler's backend driver.
+Note that not all options are meaningful; typically only the options
+affecting the assembler and linker are likely to be useful.
+
+Passing these options is only available in libgccjit version 9
+and above."
+ :type 'list
+ :group 'comp)
+
(defvar comp-dry-run nil
"When non nil run everything but the C back-end.")