forked from qt-creator/qt-creator
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:
@@ -207,7 +207,8 @@ def __getExpectedCompilers__():
|
||||
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]',
|
||||
'*g++*', '*gcc*'):
|
||||
compilers.extend(findAllFilesInPATH(c))
|
||||
filesInPath = set(findAllFilesInPATH(c))
|
||||
compilers.extend(filesInPath | set(map(os.path.realpath, filesInPath)))
|
||||
if platform.system() == 'Darwin':
|
||||
for compilerExe in ('clang++', 'clang'):
|
||||
xcodeClang = getOutputFromCmdline(["xcrun", "--find", compilerExe]).strip("\n")
|
||||
|
Reference in New Issue
Block a user