Initialize c compiler variables later ...

... so that symbols such as "cpp" are defined

Fixes #1460
This commit is contained in:
def
2015-03-28 15:07:55 +01:00
parent 165619552a
commit 07351d5f37
2 changed files with 2 additions and 1 deletions

View File

@@ -486,7 +486,7 @@ proc lenField(p: BProc): PRope =
include ccgcalls, "ccgstmts.nim", "ccgexprs.nim"
# ----------------------------- 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 =
let n = lib.path

View File

@@ -54,6 +54,7 @@ proc commandDoc2 =
finishDoc2Pass(gProjectName)
proc commandCompileToC =
extccomp.initVars()
semanticPasses()
registerPass(cgenPass)
rodPass()