correctly handle --no-autocompile (fixed broken previous patch)
* libguile/load.c (scm_init_load): Initialize %load-should-autocompile to false. * libguile/init.c (scm_i_init_guile): * libguile/load.h: * libguile/load.c (scm_init_load_should_autocompile): At the end of init, check GUILE_AUTO_COMPILE. * libguile/script.c (scm_compile_shell_switches): Instead of making --autocompile / --no-autocompile render into the s-expression, just handle them immediately, so that --no-autocompile takes effect for the expander.
This commit is contained in:
parent
2533f10b40
commit
6128f34c4b
4 changed files with 19 additions and 24 deletions
|
|
@ -39,6 +39,7 @@ SCM_API SCM scm_c_primitive_load_path (const char *filename);
|
|||
SCM_INTERNAL SCM scm_sys_warn_autocompilation_enabled (void);
|
||||
SCM_INTERNAL void scm_init_load_path (void);
|
||||
SCM_INTERNAL void scm_init_load (void);
|
||||
SCM_INTERNAL void scm_init_load_should_autocompile (void);
|
||||
SCM_INTERNAL void scm_init_eval_in_scheme (void);
|
||||
|
||||
#endif /* SCM_LOAD_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue