Fix name of generated C file in tester

- Makes tests/ccgbugs/tmissingvolatile work again
This commit is contained in:
def
2015-02-04 20:41:27 +01:00
parent be33e55518
commit c58573b34a

View File

@@ -134,7 +134,7 @@ proc cmpMsgs(r: var TResults, expected, given: TSpec, test: TTest) =
proc generatedFile(path, name: string, target: TTarget): string =
let ext = targetToExt[target]
result = path / "nimcache" /
(if target == targetJS: path.splitPath.tail & "_" else: "") &
(if target == targetJS: path.splitPath.tail & "_" else: "compiler_") &
name.changeFileExt(ext)
proc codegenCheck(test: TTest, check: string, given: var TSpec) =