another attempt to make travis and appveyor green again
This commit is contained in:
parent
b2a5f97860
commit
b018ddca03
1 changed files with 3 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ var
|
||||||
envComputed {.threadvar.}: bool
|
envComputed {.threadvar.}: bool
|
||||||
environment {.threadvar.}: seq[string]
|
environment {.threadvar.}: seq[string]
|
||||||
|
|
||||||
when defined(windows):
|
when defined(windows) and not defined(nimscript):
|
||||||
# because we support Windows GUI applications, things get really
|
# because we support Windows GUI applications, things get really
|
||||||
# messy here...
|
# messy here...
|
||||||
when useWinUnicode:
|
when useWinUnicode:
|
||||||
|
|
@ -58,7 +58,7 @@ when defined(windows):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
const
|
const
|
||||||
useNSGetEnviron = defined(macosx) and not defined(ios)
|
useNSGetEnviron = (defined(macosx) and not defined(ios)) or defined(nimscript)
|
||||||
|
|
||||||
when useNSGetEnviron:
|
when useNSGetEnviron:
|
||||||
# From the manual:
|
# From the manual:
|
||||||
|
|
@ -137,7 +137,7 @@ proc putEnv*(key, val: string) {.tags: [WriteEnvEffect].} =
|
||||||
else:
|
else:
|
||||||
add environment, (key & '=' & val)
|
add environment, (key & '=' & val)
|
||||||
indx = high(environment)
|
indx = high(environment)
|
||||||
when defined(windows):
|
when defined(windows) and not defined(nimscript):
|
||||||
when useWinUnicode:
|
when useWinUnicode:
|
||||||
var k = newWideCString(key)
|
var k = newWideCString(key)
|
||||||
var v = newWideCString(val)
|
var v = newWideCString(val)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue