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:
Ludovic Courtès 2017-11-22 16:04:24 +01:00
commit 83d4c4d622
2 changed files with 11 additions and 5 deletions

View file

@ -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