diff options
author | Gerd Möllmann <gerd@gnu.org> | 2022-09-18 08:05:52 +0200 |
---|---|---|
committer | Gerd Möllmann <gerd@gnu.org> | 2022-09-19 07:14:58 +0200 |
commit | 97b928ce09d6034ebcb541fb548e5d4862302add (patch) | |
tree | df65becff167bab338374152b26bd36d77ce2179 /lisp/emacs-lisp/comp.el | |
parent | a2f9788cbc5f514da5f11d9f875fd7482bb00732 (diff) | |
download | emacs-97b928ce09d6034ebcb541fb548e5d4862302add.tar.gz emacs-97b928ce09d6034ebcb541fb548e5d4862302add.tar.bz2 emacs-97b928ce09d6034ebcb541fb548e5d4862302add.zip |
MacOS ld warning from native compilation (bug#57849)
* lisp/emacs-lisp/comp.el (native-comp-driver-options): Add "-Wl,-w"
on Darwin systems.
* etc/NEWS: Describe change.
Diffstat (limited to 'lisp/emacs-lisp/comp.el')
-rw-r--r-- | lisp/emacs-lisp/comp.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index a5ab12ae388..d0234a81aa5 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -178,14 +178,15 @@ and above." :type '(repeat string) :version "28.1") -(defcustom native-comp-driver-options nil +(defcustom native-comp-driver-options (when (eq system-type 'darwin) + '("-Wl,-w")) "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. Passing these options is only available in libgccjit version 9 and above." - :type '(repeat string) ; FIXME is this right? + :type '(repeat string) :version "28.1") (defcustom comp-libgccjit-reproducer nil |