diff options
| -rw-r--r-- | nimterop.nimble | 7 | ||||
| -rw-r--r-- | tests/getheader.nims | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/nimterop.nimble b/nimterop.nimble index 702c714..bd4521d 100644 --- a/nimterop.nimble +++ b/nimterop.nimble @@ -18,8 +18,11 @@ proc execCmd(cmd: string) = exec "tests/timeit " & cmd proc execTest(test: string, flags = "", runDocs = true) = - execCmd "nim c --hints:off -f " & flags & " -r " & test - execCmd "nim cpp --hints:off " & flags & " -r " & test + execCmd "nim c --hints:off -f -d:checkAbi " & flags & " -r " & test + let + # -d:checkAbi broken in cpp mode until post 1.2.0 + cppAbi = when (NimMajor, NimMinor) >= (1, 3): "-d:checkAbi " else: "" + execCmd "nim cpp --hints:off " & cppAbi & flags & " -r " & test if runDocs: let docPath = "build/html_" & test.extractFileName.changeFileExt("") & "_docs" diff --git a/tests/getheader.nims b/tests/getheader.nims index 987545a..be22967 100644 --- a/tests/getheader.nims +++ b/tests/getheader.nims @@ -14,7 +14,7 @@ proc testCall(cmd, output: string, exitCode: int, delete = true) = doAssert outp.contains(output), outp var - cmd = "nim c -f --hints:off -d:FLAGS=\"-f:ast2\"" + cmd = "nim c -f --hints:off -d:FLAGS=\"-f:ast2\" -d:checkAbi" lrcmd = " -r lzma.nim" zrcmd = " -r zlib.nim" lexp = "liblzma version = " |
