summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/extccomp.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index dfc13edf5..2e1846424 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -1002,7 +1002,7 @@ proc writeJsonBuildInstructions*(conf: ConfigRef) =
     for i, it in clist:
       if CfileFlag.Cached in it.flags: continue
       let compileCmd = getCompileCFileCmd(conf, it)
-      if comma: lit ",\L"; comma = false
+      if comma: lit ",\L" else: comma = true
       lit "["
       str it.cname.string
       lit ", "