Skip to content

Commit

Permalink
fix nim-lang#13633 fix koch boot crashing regression
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Mar 12, 2020
1 parent bbc231f commit c4ff673
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions compiler/extccomp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -998,10 +998,11 @@ proc writeJsonBuildInstructions*(conf: ConfigRef) =
f.write escapeJson(x)

proc cfiles(conf: ConfigRef; f: File; buf: var string; clist: CfileList, isExternal: bool) =
for i, it in clist:
var first = true
for it in clist:
if CfileFlag.Cached in it.flags: continue
let compileCmd = getCompileCFileCmd(conf, it)
if i > 0: lit ",\L"
if first: first = false else: lit ",\L"
lit "["
str it.cname.string
lit ", "
Expand Down Expand Up @@ -1137,7 +1138,7 @@ proc runJsonBuildInstructions*(conf: ConfigRef; projectfile: AbsoluteFile) =

except:
let e = getCurrentException()
quit "\ncaught exception:n" & e.msg & "\nstacktrace:\n" & e.getStackTrace() &
quit "\ncaught exception:\n" & e.msg & "\nstacktrace:\n" & e.getStackTrace() &
"error evaluating JSON file: " & jsonFile.string

proc genMappingFiles(conf: ConfigRef; list: CfileList): Rope =
Expand Down

0 comments on commit c4ff673

Please sign in to comment.