diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2020-05-05 11:04:17 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2020-05-05 11:04:17 -0500 |
| commit | 1f2d7892adc6e63443526bbc263af644bf91893c (patch) | |
| tree | 69d74cf38b75a1ef3b74c865f6cc02bbc9c7f8cb | |
| parent | 25660ac47532e4a6e0943e20f42ee34b1165a690 (diff) | |
| download | nimterop-1f2d7892adc6e63443526bbc263af644bf91893c.tar.gz nimterop-1f2d7892adc6e63443526bbc263af644bf91893c.zip | |
Enable -d:checkAbi in tests
| -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 = " |
