summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-09-30 18:38:25 +0800
committerGitHub <noreply@github.com>2022-09-30 12:38:25 +0200
commitae050b05e9ce6f4e356c46de8722724a2f706e18 (patch)
treed042b09c9416ea2ef63faf139eb6e7297b0419e7 /compiler
parent3e43ea3384acd666196bbcdc6029741df9b6e325 (diff)
downloadNim-ae050b05e9ce6f4e356c46de8722724a2f706e18.tar.gz
koch boot compiler with orc (#20467)
* koch boot compiler with orc

* use orc

* workaround bugs

* move it

* move the data
Diffstat (limited to 'compiler')
-rw-r--r--compiler/nim.cfg1
-rw-r--r--compiler/semstmts.nim2
2 files changed, 1 insertions, 2 deletions
diff --git a/compiler/nim.cfg b/compiler/nim.cfg
index 5e8471f70..853a657b3 100644
--- a/compiler/nim.cfg
+++ b/compiler/nim.cfg
@@ -6,7 +6,6 @@ define:booting
 define:nimcore
 define:nimPreviewFloatRoundtrip
 define:nimPreviewSlimSystem
-gc:refc
 
 #import:"$projectpath/testability"
 
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index faf8e3baa..1b98f5c1a 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -225,7 +225,7 @@ proc semTry(c: PContext, n: PNode; flags: TExprFlags; expectedType: PType = nil)
 
       if a.len == 2 and a[0].kind == nkBracket:
         # rewrite ``except [a, b, c]: body`` -> ```except a, b, c: body```
-        a.sons[0..0] = a[0].sons
+        a.sons[0..0] = move a[0].sons
 
       if a.len == 2 and a[0].isInfixAs():
         # support ``except Exception as ex: body``