浏览代码

Merge pull request #11904 from N0hbdy/master

Fix python 3 build in osx-specific platform

[ci skip]
Rémi Verschelde 8 年之前
父节点
当前提交
bd10a00240
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/osx/detect.py

+ 1 - 1
platform/osx/detect.py

@@ -62,7 +62,7 @@ def configure(env):
 
 
     ## Compiler configuration
     ## 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"):
         if (env["bits"] == "fat"):
             env.Append(CCFLAGS=['-arch', 'i386', '-arch', 'x86_64'])
             env.Append(CCFLAGS=['-arch', 'i386', '-arch', 'x86_64'])
             env.Append(LINKFLAGS=['-arch', 'i386', '-arch', 'x86_64'])
             env.Append(LINKFLAGS=['-arch', 'i386', '-arch', 'x86_64'])