summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-09-24 20:14:01 +0800
committerGitHub <noreply@github.com>2022-09-24 20:14:01 +0800
commit30bd75e459eb52eb043071d91e333fcb3abacf15 (patch)
tree5761e4750e2ee18abe479ff635a6273496717274
parent37ca97dd76c8e02228338c68aa3c5aed03074ed2 (diff)
downloadNim-30bd75e459eb52eb043071d91e333fcb3abacf15.tar.gz
continue booting the compiler with refc (#20421)
* continue boot the compiler with refc

* koch

* use `gc:refc`
-rw-r--r--.github/workflows/ci_docs.yml2
-rw-r--r--compiler/nim.cfg1
-rw-r--r--koch.nim2
3 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/ci_docs.yml b/.github/workflows/ci_docs.yml
index c0874dd06..6228c48c8 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 853a657b3..5e8471f70 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 d765ebb28..2564456c9 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")