forked from qt-creator/qt-creator
Squish: Fix detection of ABIs on Mac
Change-Id: If3cca65f1f3ccf7e62dc79cde72d1bce41ab92b9 Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
@@ -147,6 +147,10 @@ def substituteDefaultCompiler(settingsDir):
|
||||
test.log("Injected default compiler '%s' to qtversion.xml..." % compiler)
|
||||
|
||||
def __guessABI__(supportedABIs, use64Bit):
|
||||
if platform.system() == 'Linux':
|
||||
supportedABIs = filter(lambda x: 'linux' in x, supportedABIs)
|
||||
elif platform.system() == 'Darwin':
|
||||
supportedABIs = filter(lambda x: 'macos' in x, supportedABIs)
|
||||
if use64Bit:
|
||||
searchFor = "64bit"
|
||||
else:
|
||||
@@ -162,8 +166,6 @@ def __guessABI__(supportedABIs, use64Bit):
|
||||
return ''
|
||||
|
||||
def __is64BitOS__():
|
||||
if platform.system() == 'Darwin':
|
||||
return sys.maxsize > (2 ** 32)
|
||||
if platform.system() in ('Microsoft', 'Windows'):
|
||||
machine = os.getenv("PROCESSOR_ARCHITEW6432", os.getenv("PROCESSOR_ARCHITECTURE"))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user