]> git.eshelyaron.com Git - emacs.git/commitdiff
* Name temp eln files as .eln.tmp so we can't clean-up them mistakenly.
authorAndrea Corallo <akrl@sdf.org>
Mon, 7 Sep 2020 21:57:52 +0000 (23:57 +0200)
committerAndrea Corallo <akrl@sdf.org>
Mon, 7 Sep 2020 22:03:16 +0000 (00:03 +0200)
* src/comp.c (Fcomp__compile_ctxt_to_file): Postfix temporary eln
files as .eln.tmp.

src/comp.c

index 70bb560da638270c65c3404200a5190a5068facb..5880224ac777c4f65cd8e153444a19d01595045e 100644 (file)
@@ -4353,10 +4353,8 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file,
   if (COMP_DEBUG > 2)
     gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c");
 
-  AUTO_STRING (dot_eln, NATIVE_ELISP_SUFFIX);
-
   Lisp_Object tmp_file =
-    Fmake_temp_file_internal (base_name, Qnil, dot_eln, Qnil);
+    Fmake_temp_file_internal (base_name, Qnil, build_string (".eln.tmp"), Qnil);
   gcc_jit_context_compile_to_file (comp.ctxt,
                                   GCC_JIT_OUTPUT_KIND_DYNAMIC_LIBRARY,
                                   SSDATA (tmp_file));