feat(frontends/lean/parser): use system_import when processing Lean import command
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
b9a7cc41ef
commit
06002c5312
1 changed files with 2 additions and 5 deletions
|
@ -989,11 +989,8 @@ void parser::parse_imports() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_env = import_modules(m_env, olean_files.size(), olean_files.data(), m_num_threads, true, m_ios);
|
m_env = import_modules(m_env, olean_files.size(), olean_files.data(), m_num_threads, true, m_ios);
|
||||||
using_script([&](lua_State * L) {
|
for (auto const & f : lua_files)
|
||||||
for (auto const & f : lua_files) {
|
system_import(f.c_str());
|
||||||
to_script_state(L).import_explicit(f.c_str());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool parser::parse_commands() {
|
bool parser::parse_commands() {
|
||||||
|
|
Loading…
Reference in a new issue