fixes #14209 [backport:1.2] (#14213)

* fixes #14209 [backport:1.2]
* improve stability
This commit is contained in:
Andreas Rumpf 2020-05-05 00:48:13 +02:00 • committed by GitHub
commit 64e839d5fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 1 deletions

View file

@ -95,6 +95,9 @@ proc commandCompileToC(graph: ModuleGraph) =
graph.config.notes = graph.config.mainPackageNotes
return
if not extccomp.ccHasSaneOverflow(conf):
conf.symbols.defineSymbol("nimEmulateOverflowChecks")
compileProject(graph)
if graph.config.errorCounter > 0:
return # issue #9933