summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2015-03-14 20:50:21 +0100
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2015-03-14 21:35:33 +0100
commitff94ce9d0b5338dc3985910c6c2a63f8feeafe8d (patch)
tree9ad27874dd2bed0a7475c9d28cae214514e70776
parent2f4472963fca55de312c962cdc648f37bd6838e1 (diff)
downloadNim-ff94ce9d0b5338dc3985910c6c2a63f8feeafe8d.tar.gz
Enables use of NSGetEnviron for osx binary compatibility. Refs #965.
-rw-r--r--lib/pure/os.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index d2e112c18..82d6177e1 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -1121,8 +1121,8 @@ when defined(windows):
 
 else:
   const
-    useNSGetEnviron = defined(macosx) and
-      (defined(createNimRtl) or defined(useNimRtl))
+    useNSGetEnviron = defined(macosx)
+
   when useNSGetEnviron:
     # From the manual:
     # Shared libraries and bundles don't have direct access to environ,