csources_v2 can build the ORC-booted compiler; building now uses strict mode (#21411)

* csources_v2 can build the ORC-booted compiler; building now uses strict mode

* test booting in refc
This commit is contained in:
ringabout 2023-02-21 15:58:45 +08:00 • committed by GitHub
commit ffd6bc8749
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -530,8 +530,7 @@ proc runCI(cmd: string) =
# boot without -d:nimHasLibFFI to make sure this still works
# `--lib:lib` is needed for bootstrap on openbsd, for reasons described in
# https://github.com/nim-lang/Nim/pull/14291 (`getAppFilename` bugsfor older nim on openbsd).
kochExecFold("Boot in release mode", "boot -d:release --gc:refc -d:nimStrictMode --lib:lib")
kochExecFold("Boot Nim ORC", "boot -d:release --lib:lib")
kochExecFold("Boot Nim ORC", "boot -d:release -d:nimStrictMode --lib:lib")
when false: # debugging: when you need to run only 1 test in CI, use something like this:
execFold("debugging test", "nim r tests/stdlib/tosproc.nim")
@ -587,6 +586,9 @@ proc runCI(cmd: string) =
execFold("Run atlas tests", "nim c -r -d:atlasTests tools/atlas/atlas.nim clone https://github.com/disruptek/balls")
kochExecFold("Testing booting in refc", "boot -d:release --mm:refc -d:nimStrictMode --lib:lib")
proc testUnixInstall(cmdLineRest: string) =
csource("-d:danger" & cmdLineRest)
xz(false, cmdLineRest)