Let the distutils build handle multiple architectures in the ARCH= flag too.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-03-17 23:51:07 +00:00
parent ab0629c8d2
commit 919078c196

View File

@@ -241,10 +241,11 @@ class Configuration(object):
self.libs = ['stdc++']
if not self.ARCH == "":
self.cflags.append("-arch")
self.cflags.append(self.ARCH)
self.lflags.append("-arch")
self.lflags.append(self.ARCH)
for arch in self.ARCH.split(','):
self.cflags.append("-arch")
self.cflags.append(arch)
self.lflags.append("-arch")
self.lflags.append(arch)
if not os.environ.get('CC') or not os.environ.get('CXX'):
self.CC = os.environ["CC"] = self.getWxConfigValue('--cc')