diff options
| author | Andreas Fuchs | 2020-08-20 21:05:37 -0400 |
|---|---|---|
| committer | Andrea Corallo | 2020-08-26 21:25:45 +0200 |
| commit | c17013ae766d7d3dd79122e1ee99d3f2ec4d9f04 (patch) | |
| tree | 1079f3298a3e4ad6314b9fc2fedfc9111fc3dc84 /src | |
| parent | 1f105d5554e37a0c4994806a0f910c6686f2014d (diff) | |
| download | emacs-c17013ae766d7d3dd79122e1ee99d3f2ec4d9f04.tar.gz emacs-c17013ae766d7d3dd79122e1ee99d3f2ec4d9f04.zip | |
* 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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/comp.c b/src/comp.c index 6cde761f761..5bfbfbaf3c9 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -4122,6 +4122,23 @@ DEFUN ("comp--release-ctxt", Fcomp__release_ctxt, Scomp__release_ctxt, | |||
| 4122 | return Qt; | 4122 | return Qt; |
| 4123 | } | 4123 | } |
| 4124 | 4124 | ||
| 4125 | DEFUN ("comp-native-driver-options-available-p", Fcomp_native_driver_options_available_p, | ||
| 4126 | Scomp_native_driver_options_available_p, | ||
| 4127 | 0, 0, 0, | ||
| 4128 | doc: /* Return t if `comp-native-driver-options' can be used. */) | ||
| 4129 | (void) | ||
| 4130 | { | ||
| 4131 | #if defined (LIBGCCJIT_HAVE_gcc_jit_context_add_driver_option) \ | ||
| 4132 | || defined (WINDOWSNT) | ||
| 4133 | #pragma GCC diagnostic ignored "-Waddress" | ||
| 4134 | if (gcc_jit_context_add_driver_option) | ||
| 4135 | return Qt; | ||
| 4136 | #pragma GCC diagnostic pop | ||
| 4137 | #endif | ||
| 4138 | return Qnil; | ||
| 4139 | } | ||
| 4140 | |||
| 4141 | |||
| 4125 | static void | 4142 | static void |
| 4126 | add_driver_options (void) | 4143 | add_driver_options (void) |
| 4127 | { | 4144 | { |
| @@ -5123,6 +5140,7 @@ native compiled one. */); | |||
| 5123 | "configuration, please recompile")); | 5140 | "configuration, please recompile")); |
| 5124 | 5141 | ||
| 5125 | defsubr (&Scomp_el_to_eln_filename); | 5142 | defsubr (&Scomp_el_to_eln_filename); |
| 5143 | defsubr (&Scomp_native_driver_options_available_p); | ||
| 5126 | defsubr (&Scomp__init_ctxt); | 5144 | defsubr (&Scomp__init_ctxt); |
| 5127 | defsubr (&Scomp__release_ctxt); | 5145 | defsubr (&Scomp__release_ctxt); |
| 5128 | defsubr (&Scomp__compile_ctxt_to_file); | 5146 | defsubr (&Scomp__compile_ctxt_to_file); |