]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/comp.c (add_driver_options): Fix missing condition + clean-up pragma
authorAndrea Corallo <akrl@sdf.org>
Mon, 24 Aug 2020 08:25:36 +0000 (10:25 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 26 Aug 2020 19:25:45 +0000 (21:25 +0200)
src/comp.c

index 5bfbfbaf3c9b6bc0596dcd26f8bc70e6cce1c144..7f6bbe395b59f7bb7bc8ce769b8b88857a211a32 100644 (file)
@@ -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,