mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 12:00:13 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user