Honor '%fresh-auto-compile'.
Fixes <https://bugs.gnu.org/29226>. * libguile/load.c (scm_primitive_load_path): Set 'compiled_thunk' to SCM_BOOL_F when *scm_loc_fresh_auto_compile is true. * module/ice-9/boot-9.scm (load-in-vicinity)[load-absolute]: Call 'pre-compiled' only when %FRESH-AUTO-COMPILE is false.
This commit is contained in:
parent
2fe9a852fb
commit
83d4c4d622
2 changed files with 11 additions and 5 deletions
|
|
@ -3811,7 +3811,10 @@ when none is available, reading FILE-NAME with READER."
|
|||
scmstat
|
||||
go-file-name))))))
|
||||
|
||||
(let ((compiled (and scmstat (or (pre-compiled) (fallback)))))
|
||||
(let ((compiled (and scmstat
|
||||
(or (and (not %fresh-auto-compile)
|
||||
(pre-compiled))
|
||||
(fallback)))))
|
||||
(if compiled
|
||||
(begin
|
||||
(if %load-hook
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue