summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-09-01 15:55:36 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-09-01 15:55:41 +0200
commitb018ddca033a04518ce41f2030c200c76f82aded (patch)
tree1bddfd8d75f155cd5c0ea2604f5f27e9b51824f1 /lib
parentb2a5f978602ff39a9bd2b302d2acdd241f09086a (diff)
downloadNim-b018ddca033a04518ce41f2030c200c76f82aded.tar.gz
another attempt to make travis and appveyor green again
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/includes/osenv.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/includes/osenv.nim b/lib/pure/includes/osenv.nim
index 63500c5fa..8d2fc235a 100644
--- a/lib/pure/includes/osenv.nim
+++ b/lib/pure/includes/osenv.nim
@@ -15,7 +15,7 @@ var
   envComputed {.threadvar.}: bool
   environment {.threadvar.}: seq[string]
 
-when defined(windows):
+when defined(windows) and not defined(nimscript):
   # because we support Windows GUI applications, things get really
   # messy here...
   when useWinUnicode:
@@ -58,7 +58,7 @@ when defined(windows):
 
 else:
   const
-    useNSGetEnviron = defined(macosx) and not defined(ios)
+    useNSGetEnviron = (defined(macosx) and not defined(ios)) or defined(nimscript)
 
   when useNSGetEnviron:
     # From the manual:
@@ -137,7 +137,7 @@ proc putEnv*(key, val: string) {.tags: [WriteEnvEffect].} =
     else:
       add environment, (key & '=' & val)
       indx = high(environment)
-    when defined(windows):
+    when defined(windows) and not defined(nimscript):
       when useWinUnicode:
         var k = newWideCString(key)
         var v = newWideCString(val)