CAAS fixes.

--def will now retrieve symbols from the source map correctly. GCC is also
no longer called.
This commit is contained in:
Dominik Picheta 2014-06-16 19:09:58 +01:00
commit 025d8c1c16
2 changed files with 10 additions and 4 deletions

View file

@ -201,7 +201,10 @@ proc commandSuggest =
# issuing the first compile command. This will leave the compiler
# cache in a state where "no recompilation is necessary", but the
# cgen pass was never executed at all.
commandCompileToC()
# commandCompileToC()
semanticPasses()
registerPass(cgenPass)
compileProject()
if gDirtyBufferIdx != 0:
discard compileModule(gDirtyBufferIdx, {sfDirty})
resetModule(gDirtyBufferIdx)
@ -424,6 +427,7 @@ proc mainCommand* =
commandEval(mainCommandArg())
of "reset":
resetMemory()
gGlobalOptions.incl(optCaasEnabled)
of "idetools":
gCmd = cmdIdeTools
if gEvalExpr != "":