From ab5bd9e6ffb9b32fa587f435d45b30c712c6aef2 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 27 Jun 2019 17:10:11 +0200 Subject: [PATCH] make tests green again (cherry picked from commit f36a61e6d41603200ef1b39dcb503fd9b7d977bc) --- lib/system.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system.nim b/lib/system.nim index 8890f03645..04174a23ff 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)