From 52e36a19a902edcc533c0e0ffd0eff8c83158fef Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Fri, 21 Dec 2018 03:29:45 -0800 Subject: [PATCH] fix #9933 (#10067) --- compiler/main.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/main.nim b/compiler/main.nim index 4e28ed4839..2b29077949 100644 --- a/compiler/main.nim +++ b/compiler/main.nim @@ -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, "")