summary refs log tree commit diff stats
path: root/lib/system/orc.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-09-20 18:01:07 +0200
committerGitHub <noreply@github.com>2020-09-20 18:01:07 +0200
commit04cecdf9c28c1f1d526d209c582afe7daa7fe654 (patch)
tree58a4f355553a290091adef7e9cdc839ea0e08a81 /lib/system/orc.nim
parentcdac67376c599c39e748401e8c0a82ab51a87326 (diff)
downloadNim-04cecdf9c28c1f1d526d209c582afe7daa7fe654.tar.gz
async: removed the 'unown' references, async never worked with --newruntime anyway and --newruntime is dead (#15374)
Diffstat (limited to 'lib/system/orc.nim')
-rw-r--r--lib/system/orc.nim7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/system/orc.nim b/lib/system/orc.nim
index ac6211ebb..cf8d6379a 100644
--- a/lib/system/orc.nim
+++ b/lib/system/orc.nim
@@ -103,9 +103,10 @@ proc nimTraceRefDyn(q: pointer; env: pointer) {.compilerRtl, inline.} =
     j.traceStack.add(head p[], cast[ptr PNimTypeV2](p[])[])
 
 template orcAssert(cond, msg) =
-  if not cond:
-    cfprintf(cstderr, "[Bug!] %s\n", msg)
-    quit 1
+  when logOrc:
+    if not cond:
+      cfprintf(cstderr, "[Bug!] %s\n", msg)
+      quit 1
 
 var
   roots {.threadvar.}: CellSeq