summaryrefslogtreecommitdiff
path: root/src/comp.c
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-08-24 10:25:36 +0200
committerAndrea Corallo <akrl@sdf.org>2020-08-26 21:25:45 +0200
commitf8321f07ce874e9c7294cdb8e15f8a08ba064aa7 (patch)
tree8effc0269fa73b9c8fc18ff5a26f716cc03f8e54 /src/comp.c
parentc17013ae766d7d3dd79122e1ee99d3f2ec4d9f04 (diff)
downloademacs-f8321f07ce874e9c7294cdb8e15f8a08ba064aa7.tar.gz
emacs-f8321f07ce874e9c7294cdb8e15f8a08ba064aa7.tar.bz2
emacs-f8321f07ce874e9c7294cdb8e15f8a08ba064aa7.zip
* src/comp.c (add_driver_options): Fix missing condition + clean-up pragma
Diffstat (limited to 'src/comp.c')
-rw-r--r--src/comp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/comp.c b/src/comp.c
index 5bfbfbaf3c9..7f6bbe395b5 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -4146,13 +4146,12 @@ add_driver_options (void)
#if defined (LIBGCCJIT_HAVE_gcc_jit_context_add_driver_option) \
|| defined (WINDOWSNT)
-#pragma GCC diagnostic ignored "-Waddress"
load_gccjit_if_necessary (true);
- FOR_EACH_TAIL (options)
- gcc_jit_context_add_driver_option (comp.ctxt,
- SSDATA (XCAR (options)));
+ if (!NILP (Fcomp_native_driver_options_available_p ()))
+ FOR_EACH_TAIL (options)
+ gcc_jit_context_add_driver_option (comp.ctxt,
+ SSDATA (XCAR (options)));
return;
-#pragma GCC diagnostic pop
#endif
if (CONSP (options))
xsignal1 (Qnative_compiler_error,