enable testing -d:nimHasLibFFI mode (#13091)
This commit is contained in:
parent
b20d7e2110
commit
e70294dff2
8 changed files with 110 additions and 96 deletions
11
koch.nim
11
koch.nim
|
|
@ -485,10 +485,6 @@ proc runCI(cmd: string) =
|
|||
## build nimble early on to enable remainder to depend on it if needed
|
||||
kochExecFold("Build Nimble", "nimble")
|
||||
|
||||
when false:
|
||||
execFold("nimble install -y libffi", "nimble install -y libffi")
|
||||
kochExecFold("boot -d:release -d:nimHasLibFFI", "boot -d:release -d:nimHasLibFFI")
|
||||
|
||||
if getEnv("NIM_TEST_PACKAGES", "false") == "true":
|
||||
execFold("Test selected Nimble packages", "nim c -r testament/testament cat nimble-packages")
|
||||
else:
|
||||
|
|
@ -502,6 +498,13 @@ proc runCI(cmd: string) =
|
|||
|
||||
# main bottleneck here
|
||||
execFold("Run tester", "nim c -r -d:nimCoroutines testament/testament --pedantic all -d:nimCoroutines")
|
||||
block: # CT FFI
|
||||
when defined(posix): # windows can be handled in future PR's
|
||||
execFold("nimble install -y libffi", "nimble install -y libffi")
|
||||
const nimFFI = "./bin/nim.ctffi"
|
||||
# no need to bootstrap with koch boot (would be slower)
|
||||
execFold("build with -d:nimHasLibFFI", "nim c -d:release -d:nimHasLibFFI -o:$1 compiler/nim.nim" % [nimFFI])
|
||||
execFold("test with -d:nimHasLibFFI", "$1 c -r testament/testament --nim:$1 r tests/vm/tevalffi.nim" % [nimFFI])
|
||||
|
||||
execFold("Run nimdoc tests", "nim c -r nimdoc/tester")
|
||||
execFold("Run nimpretty tests", "nim c -r nimpretty/tester.nim")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue