* fixes #11807
* make tests green again
This commit is contained in:
Andreas Rumpf 2019-08-07 22:40:58 +02:00 • committed by GitHub
commit c0d240b8cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 70 additions and 14 deletions

View file

@ -19,6 +19,11 @@ var
envComputed {.threadvar.}: bool
environment {.threadvar.}: seq[string]
when defined(nimV2):
proc unpairedEnvAllocs*(): int =
result = environment.len
if result > 0: inc result
when defined(windows) and not defined(nimscript):
# because we support Windows GUI applications, things get really
# messy here...