summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-08-24 10:28:59 +0200
committerAndrea Corallo <akrl@sdf.org>2020-08-24 10:45:51 +0200
commitad4879d9717cc116008f4083573bdbcceb782dd6 (patch)
tree7feb3d5d1e79e363d02e901716eed4b92f7734bb
parent0992fe5ba1dd0af31f163867651414c7d97763b2 (diff)
downloademacs-scratch/native-comp-gcc-driver-options.tar.gz
* Init gcc_jit_context_add_driver_option as optionalscratch/native-comp-gcc-driver-options
* src/comp.c (init_gccjit_functions): Use LOAD_DLL_FN_OPT to init 'gcc_jit_context_add_driver_option' as this is optional.
-rw-r--r--src/comp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp.c b/src/comp.c
index a553a4bc7e3..e6fa10cf553 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -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);