diff options
| author | Andrea Corallo | 2020-03-22 15:08:58 +0000 |
|---|---|---|
| committer | Andrea Corallo | 2020-03-22 16:11:45 +0000 |
| commit | 855940df6bde5ed41ed55336a3ac6f6ae0c6267e (patch) | |
| tree | 84914b82203938ca60be22a9d22fb79e1e3f65f0 /src | |
| parent | 07e314569b743cfc38b8bb3599355161c576ff32 (diff) | |
| download | emacs-855940df6bde5ed41ed55336a3ac6f6ae0c6267e.tar.gz emacs-855940df6bde5ed41ed55336a3ac6f6ae0c6267e.zip | |
* comp.c (maybe_defer_native_compilation): Fix
Prevent recursive compilation while deferring compilation.
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/comp.c b/src/comp.c index f5961c7d2b6..b563f27da8f 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -3402,8 +3402,13 @@ maybe_defer_native_compilation (Lisp_Object function_name, | |||
| 3402 | concat2 (CALL1I (file-name-sans-extension, Vload_file_name), | 3402 | concat2 (CALL1I (file-name-sans-extension, Vload_file_name), |
| 3403 | build_pure_c_string (".el")); | 3403 | build_pure_c_string (".el")); |
| 3404 | if (!NILP (Ffile_exists_p (src))) | 3404 | if (!NILP (Ffile_exists_p (src))) |
| 3405 | CALLN (Ffuncall, intern_c_string ("native-compile-async"), src, Qnil, | 3405 | { |
| 3406 | Qlate); | 3406 | comp_deferred_compilation = false; |
| 3407 | Frequire (intern_c_string ("comp"), Qnil, Qnil); | ||
| 3408 | comp_deferred_compilation = true; | ||
| 3409 | CALLN (Ffuncall, intern_c_string ("native-compile-async"), src, Qnil, | ||
| 3410 | Qlate); | ||
| 3411 | } | ||
| 3407 | } | 3412 | } |
| 3408 | 3413 | ||
| 3409 | 3414 | ||