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

View file

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