emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/native-comp ff89ec0: * Name temp eln files as .eln.tmp so we can


From: Andrea Corallo
Subject: feature/native-comp ff89ec0: * Name temp eln files as .eln.tmp so we can't clean-up them mistakenly.
Date: Mon, 7 Sep 2020 18:08:05 -0400 (EDT)

branch: feature/native-comp
commit ff89ec0d366f6fa8cf25702f8b3bc3d4cd0833b4
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>

    * Name temp eln files as .eln.tmp so we can't clean-up them mistakenly.
    
        * src/comp.c (Fcomp__compile_ctxt_to_file): Postfix temporary eln
        files as .eln.tmp.
---
 src/comp.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/comp.c b/src/comp.c
index 70bb560..5880224 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -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));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]