diff --git a/src/c/init.d b/src/c/init.d index 13a9e0625..a4df87bf6 100644 --- a/src/c/init.d +++ b/src/c/init.d @@ -109,9 +109,11 @@ init_lisp(void) #ifdef RUNTIME SYM_VAL(@'*features*') = CONS(make_keyword("RUNTIME"), SYM_VAL(@'*features*')); #endif + /* This has to come before init_LSP/CLOS, because we need + * clear_compiler_properties() to work in init_CLOS(). */ + ecl_booted = 1; + lex_env = Cnil; init_LSP(); init_CLOS(); - - ecl_booted = 1; }