From 30bd75e459eb52eb043071d91e333fcb3abacf15 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Sat, 24 Sep 2022 20:14:01 +0800 Subject: [PATCH] continue booting the compiler with refc (#20421) * continue boot the compiler with refc * koch * use `gc:refc` --- .github/workflows/ci_docs.yml | 2 +- compiler/nim.cfg | 1 + koch.nim | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_docs.yml b/.github/workflows/ci_docs.yml index c0874dd06b..6228c48c81 100644 --- a/.github/workflows/ci_docs.yml +++ b/.github/workflows/ci_docs.yml @@ -100,7 +100,7 @@ jobs: - name: 'Build the real compiler' shell: bash - run: ./koch boot -d:release --gc:refc + run: ./koch boot -d:release - name: 'Build documentation' shell: bash diff --git a/compiler/nim.cfg b/compiler/nim.cfg index 853a657b39..5e8471f705 100644 --- a/compiler/nim.cfg +++ b/compiler/nim.cfg @@ -6,6 +6,7 @@ define:booting define:nimcore define:nimPreviewFloatRoundtrip define:nimPreviewSlimSystem +gc:refc #import:"$projectpath/testability" diff --git a/koch.nim b/koch.nim index d765ebb28a..2564456c93 100644 --- a/koch.nim +++ b/koch.nim @@ -548,7 +548,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 in release mode", "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")