From d84c4bba9b5b20386fbf88b1695de6071a48da7d Mon Sep 17 00:00:00 2001 From: Clyybber Date: Thu, 12 Mar 2020 11:01:03 +0100 Subject: [PATCH] Fix #13633 --- compiler/extccomp.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index 34552e6f3bbf1..dfc13edf56024 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -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) = + var comma = false for i, it in clist: if CfileFlag.Cached in it.flags: continue let compileCmd = getCompileCFileCmd(conf, it) - if i > 0: lit ",\L" + if comma: lit ",\L"; comma = false lit "[" str it.cname.string lit ", "