[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/native-comp-gcc-driver-options ad4879d 4/4: * Init gcc_jit_conte
From: |
Andrea Corallo |
Subject: |
scratch/native-comp-gcc-driver-options ad4879d 4/4: * Init gcc_jit_context_add_driver_option as optional |
Date: |
Mon, 24 Aug 2020 04:46:58 -0400 (EDT) |
branch: scratch/native-comp-gcc-driver-options
commit ad4879d9717cc116008f4083573bdbcceb782dd6
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* Init gcc_jit_context_add_driver_option as optional
* 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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/comp.c b/src/comp.c
index a553a4b..e6fa10c 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);