From 3c3f07cfde067ea1b9fe0b10b8b461584ee5afda Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 27 Jun 2019 14:46:38 +0200 Subject: [PATCH] fixes #11445 (cherry picked from commit fb878330a963da5a6288021fe15b337c29639ace) --- lib/system.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system.nim b/lib/system.nim index 8f4d6eb534..8890f03645 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3416,7 +3416,7 @@ template newException*(exceptn: typedesc, message: string; e.parent = parentException e -when hostOS == "standalone": +when defined(nogc): proc nimToCStringConv(s: NimString): cstring {.compilerProc, inline.} = if s == nil or s.len == 0: result = cstring"" else: result = cstring(addr s.data)