summaryrefslogtreecommitdiff
path: root/platform/osx/detect.py
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-10-07 10:55:16 +0200
committerGitHub <noreply@github.com>2017-10-07 10:55:16 +0200
commitbd10a002402de6e3a69a17af604784ea7f5b3330 (patch)
treed662ab53b23b6f7c9237c049e73e24cdbe10e7ae /platform/osx/detect.py
parent84e7bbafb75a32dbd819777a61edfdb83252b8b1 (diff)
parenta0c6fa68fba2b2443333a302dc4ae410f3a0cd9e (diff)
Merge pull request #11904 from N0hbdy/master
Fix python 3 build in osx-specific platform [ci skip]
Diffstat (limited to 'platform/osx/detect.py')
-rw-r--r--platform/osx/detect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py
index f66c3f00da..31032659b6 100644
--- a/platform/osx/detect.py
+++ b/platform/osx/detect.py
@@ -62,7 +62,7 @@ def configure(env):
## Compiler configuration
- if (not os.environ.has_key("OSXCROSS_ROOT")): # regular native build
+ if "OSXCROSS_ROOT" not in os.environ: # regular native build
if (env["bits"] == "fat"):
env.Append(CCFLAGS=['-arch', 'i386', '-arch', 'x86_64'])
env.Append(LINKFLAGS=['-arch', 'i386', '-arch', 'x86_64'])