#if defined (LIBGCCJIT_HAVE_gcc_jit_context_add_driver_option) \
|| defined (WINDOWSNT)
#pragma GCC diagnostic ignored "-Waddress"
- if (gcc_jit_context_add_driver_option)
- {
- while (CONSP (options))
- {
- gcc_jit_context_add_driver_option (comp.ctxt,
- SSDATA (XCAR (options)));
- options = XCDR (options);
- }
-
- return;
- }
+ load_gccjit_if_necessary (true);
+ 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,
- build_string ("Customizing native compiler options"
- " via `comp-native-driver-options' is"
- " only available on libgccjit version 9"
- " and above."));
- }
+ xsignal1 (Qnative_compiler_error,
+ build_string ("Customizing native compiler options"
+ " via `comp-native-driver-options' is"
+ " only available on libgccjit version 9"
+ " and above."));
}
static void