Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Clyybber committed Mar 12, 2020
1 parent 6b3098c commit 10bd758
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/extccomp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,8 @@ 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 i = 0
for it in clist:
if CfileFlag.Cached in it.flags: continue
let compileCmd = getCompileCFileCmd(conf, it)
if i > 0: lit ",\L"
Expand All @@ -1007,6 +1008,7 @@ proc writeJsonBuildInstructions*(conf: ConfigRef) =
lit ", "
str compileCmd
lit "]"
inc i

proc linkfiles(conf: ConfigRef; f: File; buf, objfiles: var string; clist: CfileList;
llist: seq[string]) =
Expand Down

0 comments on commit 10bd758

Please sign in to comment.