mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 11:00:07 +01:00
Only strip sysroot if it is specified in cc_args, if it is passed in via environment variables, keep it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -17,7 +17,9 @@ import distutils.command.install
|
|||||||
import distutils.command.install_data
|
import distutils.command.install_data
|
||||||
import distutils.command.install_headers
|
import distutils.command.install_headers
|
||||||
import distutils.command.clean
|
import distutils.command.clean
|
||||||
|
|
||||||
from distutils.dep_util import newer, newer_group
|
from distutils.dep_util import newer, newer_group
|
||||||
|
from distutils import log
|
||||||
|
|
||||||
from .config import Config, posixjoin, loadETG, etg2sip
|
from .config import Config, posixjoin, loadETG, etg2sip
|
||||||
|
|
||||||
@@ -41,7 +43,6 @@ class wx_extra_clean(distutils.command.clean.clean):
|
|||||||
--all flag was used also searches for .pyc, .pyd, .so files
|
--all flag was used also searches for .pyc, .pyd, .so files
|
||||||
"""
|
"""
|
||||||
def run(self):
|
def run(self):
|
||||||
from distutils import log
|
|
||||||
from distutils.filelist import FileList
|
from distutils.filelist import FileList
|
||||||
|
|
||||||
distutils.command.clean.clean.run(self)
|
distutils.command.clean.clean.run(self)
|
||||||
@@ -177,7 +178,7 @@ def _darwin_compiler_fixup(compiler_so, cc_args):
|
|||||||
stripArch = stripSysroot = True
|
stripArch = stripSysroot = True
|
||||||
else:
|
else:
|
||||||
stripArch = '-arch' in cc_args
|
stripArch = '-arch' in cc_args
|
||||||
stripSysroot = '-isysroot' in cc_args or stripArch or ccHasSysroot
|
stripSysroot = '-isysroot' in cc_args
|
||||||
|
|
||||||
if stripArch:
|
if stripArch:
|
||||||
while 1:
|
while 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user