]> git.eshelyaron.com Git - emacs.git/commitdiff
rename HAVE_LIBGCCJIT -> HAVE_NATIVE_COMP
authorAndrea Corallo <akrl@sdf.org>
Sun, 8 Sep 2019 08:11:36 +0000 (10:11 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:37:45 +0000 (11:37 +0100)
configure.ac
src/comp.c
src/emacs.c
src/lread.c

index a36a2f324288b9da2d9a4f3ada6e0f513192abfd..0cfd80bb2e82cc57bc6596ec73e9a2fa73ff1f21 100644 (file)
@@ -3672,15 +3672,15 @@ fi
 AC_SUBST(LIBZ)
 
 ### Emacs Lisp native compiler support
-HAVE_LIBGCCJIT=no
+HAVE_NATIVE_COMP=no
 LIBGCCJIT_LIB=
 COMP_OBJ=
 if test "${with_nativecomp}" != "no"; then
-  AC_CHECK_LIB(gccjit, gcc_jit_context_acquire, HAVE_LIBGCCJIT=yes, , -lgccjit)
-  if test "${HAVE_LIBGCCJIT}" = "yes"; then
+  AC_CHECK_LIB(gccjit, gcc_jit_context_acquire, HAVE_NATIVE_COMP=yes, , -lgccjit)
+  if test "${HAVE_NATIVE_COMP}" = "yes"; then
     LIBGCCJIT_LIB="-lgccjit -ldl"
     COMP_OBJ="dynlib.o comp.o"
-    AC_DEFINE(HAVE_LIBGCCJIT, 1, [Define to 1 if you have the libgccjit library (-lgccjit).])
+    AC_DEFINE(HAVE_NATIVE_COMP, 1, [Define to 1 if you have the libgccjit library (-lgccjit).])
     AC_DEFINE_UNQUOTED(NATIVE_ELISP_SUFFIX, ".eln",
      [System extension for native compiled elisp])
   fi
index 00e156019989a6c9d3e2cba9e1cf0558e4a5dc11..2b6f8bf0536510ce583be92ce6124362b0fea498 100644 (file)
@@ -20,7 +20,7 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
 
 #include <config.h>
 
-#ifdef HAVE_LIBGCCJIT
+#ifdef HAVE_NATIVE_COMP
 
 #include <stdlib.h>
 #include <stdio.h>
@@ -3283,4 +3283,4 @@ syms_of_comp (void)
   comp_speed = DEFAULT_SPEED;
 }
 
-#endif /* HAVE_LIBGCCJIT */
+#endif /* HAVE_NATIVE_COMP */
index c59a70988b75bfcf95eed7b76e42a0ef29dc83ba..90ab7ac1e8ef69d4ce90f15b8774a5b109c6119a 100644 (file)
@@ -1598,7 +1598,7 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
   init_json ();
 #endif
 
-#ifdef HAVE_LIBGCCJIT
+#ifdef HAVE_NATIVE_COMP
   if (!initialized)
     syms_of_comp ();
 #endif
index b10743f980c566fc369d6f89ef432f77d6f375aa..f1b17edd011493ca5b5566629381880fa6adba88 100644 (file)
@@ -1281,7 +1281,7 @@ Return t if the file exists and loads successfully.  */)
   bool is_module = false;
 #endif
 
-#ifdef HAVE_LIBGCCJIT
+#ifdef HAVE_NATIVE_COMP
   bool is_native_elisp = suffix_p (found, NATIVE_ELISP_SUFFIX);
 #else
   bool is_native_elisp = false;
@@ -1486,7 +1486,7 @@ Return t if the file exists and loads successfully.  */)
     }
   else if (is_native_elisp)
     {
-#ifdef HAVE_LIBGCCJIT
+#ifdef HAVE_NATIVE_COMP
       specbind (Qcurrent_load_list, Qnil);
       LOADHIST_ATTACH (found);
       Fnative_elisp_load (found);
@@ -4896,7 +4896,7 @@ to the specified file name if a suffix is allowed or required.  */);
     Fcons (build_pure_c_string (MODULES_SECONDARY_SUFFIX), Vload_suffixes);
 #endif
 #endif
-#ifdef HAVE_LIBGCCJIT
+#ifdef HAVE_NATIVE_COMP
   Vload_suffixes = Fcons (build_pure_c_string (NATIVE_ELISP_SUFFIX), Vload_suffixes);
 #endif