summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-06-27 17:10:11 +0200
committerAraq <rumpf_a@web.de>2019-06-27 17:10:11 +0200
commitf36a61e6d41603200ef1b39dcb503fd9b7d977bc (patch)
tree245b1130336a60c88004d13ff66f0c461a5bf79a /lib
parentfb878330a963da5a6288021fe15b337c29639ace (diff)
downloadNim-f36a61e6d41603200ef1b39dcb503fd9b7d977bc.tar.gz
make tests green again
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index f7a1c9d10..61978e23c 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -3416,7 +3416,7 @@ template newException*(exceptn: typedesc, message: string;
   e.parent = parentException
   e
 
-when defined(nogc):
+when hostOS == "standalone" and defined(nogc):
   proc nimToCStringConv(s: NimString): cstring {.compilerProc, inline.} =
     if s == nil or s.len == 0: result = cstring""
     else: result = cstring(addr s.data)