diff options
| author | Andreas Fuchs | 2020-08-20 21:05:37 -0400 |
|---|---|---|
| committer | Andreas Fuchs | 2020-08-20 21:05:37 -0400 |
| commit | 2ce19db2e3c87459d99ffc5462f89dbc55cda2bb (patch) | |
| tree | fbf6e1b3a88c5d8aadfff487bea559ea7792ffe1 | |
| parent | 7ceb2bdc9cc9725f340f1360eb5bdfbe2504d4b7 (diff) | |
| download | emacs-2ce19db2e3c87459d99ffc5462f89dbc55cda2bb.tar.gz emacs-2ce19db2e3c87459d99ffc5462f89dbc55cda2bb.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.
| -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); |