summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/bytecomp.el
diff options
context:
space:
mode:
authorArthur Miller <arthur.miller@live.com>2021-09-10 20:57:19 +0200
committerAndrea Corallo <akrl@sdf.org>2021-09-10 21:04:41 +0200
commitdea67939b65f39b60d8e990745504bd8f9e3be2c (patch)
tree8ffad5c53b9f3fdd219d14197168e8b971672dc6 /lisp/emacs-lisp/bytecomp.el
parent6eba633eadc4228f2b132cea257f1b32691fd6b2 (diff)
downloademacs-dea67939b65f39b60d8e990745504bd8f9e3be2c.tar.gz
emacs-dea67939b65f39b60d8e990745504bd8f9e3be2c.tar.bz2
emacs-dea67939b65f39b60d8e990745504bd8f9e3be2c.zip
Add support for GCC compiler command-line options
* lisp/emacs-lisp/comp.el ('native-comp-compiler-options): New option. * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Add support for new 'native-comp-compiler-options'. * src/comp.c (Fcomp_native_compiler_options_effective_p): New function. (add_compiler_options): New function. (Fcomp__compile_ctxt_to_file): Call 'add_compiler_options'.
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
-rw-r--r--lisp/emacs-lisp/bytecomp.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 8ea591b5d0e..47b3c82456c 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -2257,6 +2257,9 @@ With argument ARG, insert value in current buffer after the form."
(push `(native-comp-speed . ,native-comp-speed) byte-native-qualities)
(defvar native-comp-debug)
(push `(native-comp-debug . ,native-comp-debug) byte-native-qualities)
+ (defvar native-comp-compiler-options)
+ (push `(native-comp-compiler-options . ,native-comp-compiler-options)
+ byte-native-qualities)
(defvar native-comp-driver-options)
(push `(native-comp-driver-options . ,native-comp-driver-options)
byte-native-qualities)