make tests green again

(cherry picked from commit f36a61e6d4)
This commit is contained in:
Araq
2019-06-27 17:10:11 +02:00
committed by narimiran
parent 3c3f07cfde
commit ab5bd9e6ff

View File

@@ -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)