summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2019-01-16 23:00:44 -0800
committerAndreas Rumpf <rumpf_a@web.de>2019-01-17 08:00:44 +0100
commit42bac52426bf392fcfa3cfeeee716bec3166b709 (patch)
tree323a8c65f5cc4fe84309979b761343e719bfaf72 /lib/system.nim
parent15584879b91e14565156ca140eef1dc100cf34c4 (diff)
downloadNim-42bac52426bf392fcfa3cfeeee716bec3166b709.tar.gz
[CI] now enables `NIM_COMPILE_TO_CPP=true` to run without allow_failures (#10315)
* better fix for `nim cpp` bootstrap error: error: no member named raise_id
* [CI] now enables runs NIM_COMPILE_TO_CPP=true without allow_failures
* workaround refs #10343
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index fb52ee9eb..b479b920a 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -569,7 +569,12 @@ type
       trace: string
     else:
       trace: seq[StackTraceEntry]
-    raiseId: uint # set when exception is raised
+    when defined(nimBoostrapCsources0_19_0):
+      # see #10315, bootstrap with `nim cpp` from csources gave error:
+      # error: no member named 'raise_id' in 'Exception'
+      raise_id: uint # set when exception is raised
+    else:
+      raiseId: uint # set when exception is raised
     up: ref Exception # used for stacking exceptions. Not exported!
 
   Defect* = object of Exception ## \