Squish: Check also for expected clang on macOS

Change-Id: I32d7f5ebf02a559ca854553536874c6ec68f0ec5
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2018-04-16 15:49:31 +02:00
parent fdc4ac41d9
commit 8771054060

View File

@@ -188,7 +188,8 @@ def __getExpectedCompilers__():
compilers.extend(findAllFilesInPATH("*g++*")) compilers.extend(findAllFilesInPATH("*g++*"))
compilers.extend(findAllFilesInPATH("*gcc*")) compilers.extend(findAllFilesInPATH("*gcc*"))
if platform.system() == 'Darwin': if platform.system() == 'Darwin':
xcodeClang = getOutputFromCmdline(["xcrun", "--find", "clang++"]).strip("\n") for compilerExe in ('clang++', 'clang'):
xcodeClang = getOutputFromCmdline(["xcrun", "--find", compilerExe]).strip("\n")
if xcodeClang and os.path.exists(xcodeClang) and xcodeClang not in expected: if xcodeClang and os.path.exists(xcodeClang) and xcodeClang not in expected:
expected.append(xcodeClang) expected.append(xcodeClang)
for compiler in compilers: for compiler in compilers: