This commit is contained in:
Timothee Cour
2018-12-21 03:29:45 -08:00
committed by Andreas Rumpf
parent 23448a96cc
commit 52e36a19a9

View File

@@ -76,6 +76,8 @@ proc commandCompileToC(graph: ModuleGraph) =
registerPass(graph, cgenPass)
compileProject(graph)
if graph.config.errorCounter > 0:
return # issue #9933
cgenWriteModules(graph.backend, conf)
if conf.cmd != cmdRun:
let proj = changeFileExt(conf.projectFull, "")