diff options
| author | Andrea Corallo | 2020-09-07 23:57:52 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-09-08 00:03:16 +0200 |
| commit | ff89ec0d366f6fa8cf25702f8b3bc3d4cd0833b4 (patch) | |
| tree | fd57fa08776a3452025fd611dc37baa3ddce666c /src/comp.c | |
| parent | dc4b50ce0b52d8fcade1e04aabd92409858fcfc2 (diff) | |
| download | emacs-ff89ec0d366f6fa8cf25702f8b3bc3d4cd0833b4.tar.gz emacs-ff89ec0d366f6fa8cf25702f8b3bc3d4cd0833b4.zip | |
* 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.
Diffstat (limited to 'src/comp.c')
| -rw-r--r-- | src/comp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/comp.c b/src/comp.c index 70bb560da63..5880224ac77 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -4353,10 +4353,8 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file, | |||
| 4353 | if (COMP_DEBUG > 2) | 4353 | if (COMP_DEBUG > 2) |
| 4354 | gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c"); | 4354 | gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c"); |
| 4355 | 4355 | ||
| 4356 | AUTO_STRING (dot_eln, NATIVE_ELISP_SUFFIX); | ||
| 4357 | |||
| 4358 | Lisp_Object tmp_file = | 4356 | Lisp_Object tmp_file = |
| 4359 | Fmake_temp_file_internal (base_name, Qnil, dot_eln, Qnil); | 4357 | Fmake_temp_file_internal (base_name, Qnil, build_string (".eln.tmp"), Qnil); |
| 4360 | gcc_jit_context_compile_to_file (comp.ctxt, | 4358 | gcc_jit_context_compile_to_file (comp.ctxt, |
| 4361 | GCC_JIT_OUTPUT_KIND_DYNAMIC_LIBRARY, | 4359 | GCC_JIT_OUTPUT_KIND_DYNAMIC_LIBRARY, |
| 4362 | SSDATA (tmp_file)); | 4360 | SSDATA (tmp_file)); |