SquishTests: Expect symlinked compilers

e.g. /usr/bin/clang links to ../lib/llvm-14/bin/clang
on Ubuntu 22.04.

Change-Id: I6facd3126045036124e6c79ee83bc7575cbb02d7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Löhning
2024-01-04 13:25:49 +01:00
parent 7fdfc2ac1d
commit 72c0ff37fc

View File

@@ -207,7 +207,8 @@ def __getExpectedCompilers__():
for c in ('clang++', 'clang', 'afl-clang', for c in ('clang++', 'clang', 'afl-clang',
'clang-[0-9]', 'clang-[0-9].[0-9]', 'clang-1[0-9]', 'clang-1[0-9].[0-9]', 'clang-[0-9]', 'clang-[0-9].[0-9]', 'clang-1[0-9]', 'clang-1[0-9].[0-9]',
'*g++*', '*gcc*'): '*g++*', '*gcc*'):
compilers.extend(findAllFilesInPATH(c)) filesInPath = set(findAllFilesInPATH(c))
compilers.extend(filesInPath | set(map(os.path.realpath, filesInPath)))
if platform.system() == 'Darwin': if platform.system() == 'Darwin':
for compilerExe in ('clang++', 'clang'): for compilerExe in ('clang++', 'clang'):
xcodeClang = getOutputFromCmdline(["xcrun", "--find", compilerExe]).strip("\n") xcodeClang = getOutputFromCmdline(["xcrun", "--find", compilerExe]).strip("\n")