Fixed c filenames mangling (#12161)

This commit is contained in:
Yuriy Glukhov 2019-09-11 21:47:58 +03:00 • committed by Andreas Rumpf
commit 5783cd67a8
2 changed files with 4 additions and 4 deletions

View file

@ -332,7 +332,7 @@ proc generatedFile(test: TTest, target: TTarget): string =
else:
let (_, name, _) = test.name.splitFile
let ext = targetToExt[target]
result = nimcacheDir(test.name, test.options, target) / name.changeFileExt(ext)
result = nimcacheDir(test.name, test.options, target) / "@" & name.changeFileExt(ext)
proc needsCodegenCheck(spec: TSpec): bool =
result = spec.maxCodeSize > 0 or spec.ccodeCheck.len > 0