[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp c17013a 4/8: * Add 'comp-native-driver-options-avail
From: |
Andrea Corallo |
Subject: |
feature/native-comp c17013a 4/8: * Add 'comp-native-driver-options-available-p' |
Date: |
Wed, 26 Aug 2020 15:49:58 -0400 (EDT) |
branch: feature/native-comp
commit c17013ae766d7d3dd79122e1ee99d3f2ec4d9f04
Author: Andreas Fuchs <asf@boinkor.net>
Commit: Andrea Corallo <akrl@sdf.org>
* Add 'comp-native-driver-options-available-p'
* src/comp.c (comp-native-driver-options-available-p): New
function that returns t if driver options can be used.
---
src/comp.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/src/comp.c b/src/comp.c
index 6cde761..5bfbfba 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -4122,6 +4122,23 @@ DEFUN ("comp--release-ctxt", Fcomp__release_ctxt,
Scomp__release_ctxt,
return Qt;
}
+DEFUN ("comp-native-driver-options-available-p",
Fcomp_native_driver_options_available_p,
+ Scomp_native_driver_options_available_p,
+ 0, 0, 0,
+ doc: /* Return t if `comp-native-driver-options' can be used. */)
+ (void)
+{
+#if defined (LIBGCCJIT_HAVE_gcc_jit_context_add_driver_option) \
+ || defined (WINDOWSNT)
+#pragma GCC diagnostic ignored "-Waddress"
+ if (gcc_jit_context_add_driver_option)
+ return Qt;
+#pragma GCC diagnostic pop
+#endif
+ return Qnil;
+}
+
+
static void
add_driver_options (void)
{
@@ -5123,6 +5140,7 @@ native compiled one. */);
"configuration, please recompile"));
defsubr (&Scomp_el_to_eln_filename);
+ defsubr (&Scomp_native_driver_options_available_p);
defsubr (&Scomp__init_ctxt);
defsubr (&Scomp__release_ctxt);
defsubr (&Scomp__compile_ctxt_to_file);
- feature/native-comp updated (337367a -> aa526c9), Andrea Corallo, 2020/08/26
- feature/native-comp c00aedb 2/8: Fix windows NT handling for [...]_add_driver_options, Andrea Corallo, 2020/08/26
- feature/native-comp 51acfee 7/8: * Init gcc_jit_context_add_driver_option as optional, Andrea Corallo, 2020/08/26
- feature/native-comp 1f105d5 3/8: * Improve 'add_driver_options', Andrea Corallo, 2020/08/26
- feature/native-comp f8321f0 5/8: * src/comp.c (add_driver_options): Fix missing condition + clean-up pragma, Andrea Corallo, 2020/08/26
- feature/native-comp 2772e83 1/8: Set native driver options in async compiles, also, Andrea Corallo, 2020/08/26
- feature/native-comp c17013a 4/8: * Add 'comp-native-driver-options-available-p',
Andrea Corallo <=
- feature/native-comp 63f041c 6/8: * Rename comp-native-driver-options-available-p, Andrea Corallo, 2020/08/26
- feature/native-comp aa526c9 8/8: Merge branch 'add_driver_option' into HEAD, Andrea Corallo, 2020/08/26