summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-08-24 10:27:40 +0200
committerAndrea Corallo <akrl@sdf.org>2020-08-26 21:25:45 +0200
commit63f041c0a467e49599facf8a6992dcc20ef71eaf (patch)
tree16381333e2a3664e1b8a5e4f3855ab94da27ffa4 /src
parentf8321f07ce874e9c7294cdb8e15f8a08ba064aa7 (diff)
* Rename comp-native-driver-options-available-p
* src/comp.c (Fcomp_native_driver_options_effective_p) Rename plus better doc. (add_driver_options, syms_of_comp): Rename `comp-native-driver-options-available-p' into comp-native-driver-options-effective-p.
Diffstat (limited to 'src')
-rw-r--r--src/comp.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/comp.c b/src/comp.c
index 7f6bbe395b5..a553a4bc7e3 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -4122,10 +4122,12 @@ 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,
+DEFUN ("comp-native-driver-options-effective-p",
+ Fcomp_native_driver_options_effective_p,
+ Scomp_native_driver_options_effective_p,
0, 0, 0,
- doc: /* Return t if `comp-native-driver-options' can be used. */)
+ doc: /* Return t if `comp-native-driver-options' is
+ effective nil otherwise. */)
(void)
{
#if defined (LIBGCCJIT_HAVE_gcc_jit_context_add_driver_option) \
@@ -4147,7 +4149,7 @@ add_driver_options (void)
#if defined (LIBGCCJIT_HAVE_gcc_jit_context_add_driver_option) \
|| defined (WINDOWSNT)
load_gccjit_if_necessary (true);
- if (!NILP (Fcomp_native_driver_options_available_p ()))
+ if (!NILP (Fcomp_native_driver_options_effective_p ()))
FOR_EACH_TAIL (options)
gcc_jit_context_add_driver_option (comp.ctxt,
SSDATA (XCAR (options)));
@@ -5139,7 +5141,7 @@ native compiled one. */);
"configuration, please recompile"));
defsubr (&Scomp_el_to_eln_filename);
- defsubr (&Scomp_native_driver_options_available_p);
+ defsubr (&Scomp_native_driver_options_effective_p);
defsubr (&Scomp__init_ctxt);
defsubr (&Scomp__release_ctxt);
defsubr (&Scomp__compile_ctxt_to_file);