]> git.eshelyaron.com Git - emacs.git/commitdiff
* Init gcc_jit_context_add_driver_option as optional
authorAndrea Corallo <akrl@sdf.org>
Mon, 24 Aug 2020 08:28:59 +0000 (10:28 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 26 Aug 2020 19:25:45 +0000 (21:25 +0200)
* src/comp.c (init_gccjit_functions): Use LOAD_DLL_FN_OPT to init
'gcc_jit_context_add_driver_option' as this is optional.

src/comp.c

index a553a4bc7e317f5251a4f7857570180aabcc6fb2..e6fa10cf55381a1478b3f9fa39407f5c39c343fe 100644 (file)
@@ -259,7 +259,6 @@ init_gccjit_functions (void)
   LOAD_DLL_FN (library, gcc_jit_block_end_with_return);
   LOAD_DLL_FN (library, gcc_jit_block_end_with_void_return);
   LOAD_DLL_FN (library, gcc_jit_context_acquire);
-  LOAD_DLL_FN (library, gcc_jit_context_add_driver_option);
   LOAD_DLL_FN (library, gcc_jit_context_compile_to_file);
   LOAD_DLL_FN (library, gcc_jit_context_dump_reproducer_to_file);
   LOAD_DLL_FN (library, gcc_jit_context_dump_to_file);
@@ -305,6 +304,7 @@ init_gccjit_functions (void)
   LOAD_DLL_FN (library, gcc_jit_struct_as_type);
   LOAD_DLL_FN (library, gcc_jit_struct_set_fields);
   LOAD_DLL_FN (library, gcc_jit_type_get_pointer);
+  LOAD_DLL_FN_OPT (library, gcc_jit_context_add_driver_option);
   LOAD_DLL_FN_OPT (library, gcc_jit_version_major);
   LOAD_DLL_FN_OPT (library, gcc_jit_version_minor);
   LOAD_DLL_FN_OPT (library, gcc_jit_version_patchlevel);