Initialize c compiler variables later ...
... so that symbols such as "cpp" are defined Fixes #1460
This commit is contained in:
parent
165619552a
commit
07351d5f37
2 changed files with 2 additions and 1 deletions
|
|
@ -486,7 +486,7 @@ proc lenField(p: BProc): PRope =
|
||||||
include ccgcalls, "ccgstmts.nim", "ccgexprs.nim"
|
include ccgcalls, "ccgstmts.nim", "ccgexprs.nim"
|
||||||
|
|
||||||
# ----------------------------- dynamic library handling -----------------
|
# ----------------------------- dynamic library handling -----------------
|
||||||
# We don't finalize dynamic libs as this does the OS for us.
|
# We don't finalize dynamic libs as the OS does this for us.
|
||||||
|
|
||||||
proc isGetProcAddr(lib: PLib): bool =
|
proc isGetProcAddr(lib: PLib): bool =
|
||||||
let n = lib.path
|
let n = lib.path
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ proc commandDoc2 =
|
||||||
finishDoc2Pass(gProjectName)
|
finishDoc2Pass(gProjectName)
|
||||||
|
|
||||||
proc commandCompileToC =
|
proc commandCompileToC =
|
||||||
|
extccomp.initVars()
|
||||||
semanticPasses()
|
semanticPasses()
|
||||||
registerPass(cgenPass)
|
registerPass(cgenPass)
|
||||||
rodPass()
|
rodPass()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue