Ensure that all the extra -isysroot flags are removed from the arg list, not just the first extra one.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-06-15 00:11:14 +00:00
parent 998fb8369e
commit b443e0e5e9

View File

@@ -189,15 +189,16 @@ def _darwin_compiler_fixup(compiler_so, cc_args):
break
if stripSysroot:
try:
index = 0
if ccHasSysroot:
index = compiler_so.index('-isysroot') + 1
index = compiler_so.index('-isysroot', index)
# Strip this argument and the next one:
del compiler_so[index:index+2]
except ValueError:
pass
index = 0
if ccHasSysroot:
index = compiler_so.index('-isysroot') + 1
while 1:
try:
index = compiler_so.index('-isysroot', index)
# Strip this argument and the next one:
del compiler_so[index:index+2]
except ValueError:
break
# Check if the SDK that is used during compilation actually exists,
# the universal build requires the usage of a universal SDK and not all