fix: usesLeanAPI
This commit is contained in:
parent
17b6957f6c
commit
862795e9e9
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ match d with
|
|||
| Decl.fdecl f xs t b => do
|
||||
unless (xs.size == 2 || xs.size == 1) (throw "invalid main function, incorrect arity when generating code");
|
||||
env ← getEnv;
|
||||
let usesLeanAPI := usesModuleFrom env `Init.Lean;
|
||||
let usesLeanAPI := usesModuleFrom env `Lean;
|
||||
if usesLeanAPI then
|
||||
emitLn "void lean_initialize();"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue