diff --git a/stint.nimble b/stint.nimble index 2586ff4..d18f94c 100644 --- a/stint.nimble +++ b/stint.nimble @@ -14,9 +14,14 @@ requires "nim >= 0.19", proc test(args, path: string) = if not dirExists "build": mkDir "build" + let styleCheckStyle = + if (NimMajor, NimMinor) < (1, 6): + "hint" + else: + "error" exec "nim " & getEnv("TEST_LANG", "c") & " " & getEnv("NIMFLAGS") & " " & args & " --outdir:build -r --hints:off --warnings:off --skipParentCfg" & - " --styleCheck:usages --styleCheck:error " & path + " --styleCheck:usages --styleCheck:" & styleCheckStyle & " " & path task test, "Run all tests - test and production implementation": # Run tests for internal procs - test implementation (StUint[64] = 2x uint32