llvm-project/clang/test
David Spickett 028571d608 [clang][Driver] Correct tool search path priority
Summary:
As seen in:
https://bugs.llvm.org/show_bug.cgi?id=45693

When clang looks for a tool it has a set of
possible names for it, in priority order.
Previously it would look for these names in
the program path. Then look for all the names
in the PATH.

This means that aarch64-none-elf-gcc on the PATH
would lose to gcc in the program path.
(which was /usr/bin in the bug's case)

This changes that logic to search each name in both
possible locations, then move to the next name.
Which is more what you would expect to happen when
using a non default triple.

(-B prefixes maybe should follow this logic too,
but are not changed in this patch)

Subscribers: kristof.beyls, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D79988
2020-06-22 09:41:13 +01:00
..
ARCMT
AST [clang][test][NFC] Also test for serialization in AST dump tests, part 3/n. 2020-06-21 13:59:11 +01:00
ASTMerge
Analysis [analyzer][MallocChecker] PR46253: Correctly recognize standard realloc 2020-06-16 17:50:06 +02:00
CXX Revert "DR458: Search template parameter scopes in the right order." 2020-06-16 23:53:44 -07:00
ClangScanDeps
CodeCompletion [Sema][CodeComplete][ObjC] Don't include arrow/dot fixits 2020-06-08 12:46:00 -04:00
CodeGen [X86] Assign a feature priority to 'tigerlake' so it won't assert when used with function multiversioning 2020-06-21 13:24:58 -07:00
CodeGenCUDA [CUDA][HIP] Fix constexpr variables for C++17 2020-06-03 21:56:52 -04:00
CodeGenCXX [AIX] Default AIX to using -fno-use-cxa-atexit 2020-06-19 08:27:07 -04:00
CodeGenCoroutines [CGCall] Annotate references with "align" attribute. 2020-05-19 20:21:30 -07:00
CodeGenHIP [clang][amdgpu] Prefer not using `fp16` conversion intrinsics. 2020-06-16 10:21:56 -04:00
CodeGenObjC [Matrix] Add __builtin_matrix_column_store to Clang. 2020-06-18 11:39:02 +01:00
CodeGenObjCXX [os_log][test] Remove -O1 from a test, NFC 2020-06-01 16:54:16 -07:00
CodeGenOpenCL [AMDGPU] Add gfx1030 target 2020-06-15 16:18:05 -07:00
CodeGenOpenCLCXX [CGCall] Annotate references with "align" attribute. 2020-05-19 20:21:30 -07:00
CodeGenSYCL [SYCL] Update __builtin_unique_stable_name for other backends. 2020-04-17 07:54:18 -07:00
Coverage
CoverageMapping
Driver [clang][Driver] Correct tool search path priority 2020-06-22 09:41:13 +01:00
FixIt
Format
Frontend [Remarks] Add callsite locations to inline remarks 2020-06-20 23:32:10 -07:00
Headers [OpenMP][SYCL] Improve diagnosing of unsupported types usage 2020-05-29 18:00:48 +03:00
Import The type of a reference to a non-type template parameter pack should 2020-06-18 17:52:13 -07:00
Index [clang][index] Fix a crash for accessing a null field decl. 2020-05-21 09:47:36 +02:00
Integration
InterfaceStubs
Layout [MS] Fix packed struct layout for arrays of aligned non-record types 2020-04-14 18:34:52 -07:00
Lexer [clang][slh] Add test for SLH feature checking macro 2020-05-15 12:23:31 -07:00
Misc Create a warning flag for 'warn_conv_*_not_used' 2020-06-10 09:09:48 -04:00
Modules [NFC] Make AST_BLOCK_HASH test more robust with downstream changes 2020-06-19 09:41:15 +01:00
OpenMP [OPENMP]Fix PR46357: Do not allow types declarations in pragmas. 2020-06-18 13:17:03 -04:00
PCH fix clang/PCH/delayed-pch-instantiate test 2020-06-21 19:00:42 +02:00
Parser [Clang] Add a "#pragma unroll" test case for correct error reporting 2020-06-16 13:03:32 -07:00
ParserSYCL
Preprocessor Revert "Hook up OpenBSD 64-bit PowerPC support" 2020-06-18 20:05:39 -04:00
Profile Fix version of c-general.profdata.v5 test case 2020-06-10 16:20:20 +02:00
Refactor
Rewriter
Sema [Sema] Comparison of pointers to complete and incomplete types 2020-06-19 17:01:03 -07:00
SemaCUDA Revert D80450 "[CUDA][HIP] Fix implicit HD function resolution" 2020-06-10 17:42:28 -07:00
SemaCXX [clang] SequenceChecker: C++17 sequencing rule for overloaded operators. 2020-06-20 10:51:46 +01:00
SemaObjC [Matrix] Pass darwin tripe to SeamObjc test to fix windows bot failure. 2020-06-18 13:35:03 +01:00
SemaObjCXX [AST][RecoveryExpr] Build recovery expressions by default for C++. 2020-06-12 15:21:38 +02:00
SemaOpenCL [AMDGPU] Introduce Clang builtins to be mapped to AMDGCN atomic inc/dec intrinsics 2020-06-09 17:02:58 +00:00
SemaOpenCLCXX [AST][RecoveryExpr] Build recovery expressions by default for C++. 2020-06-12 15:21:38 +02:00
SemaSYCL [SYCL][OpenMP] Implement thread-local storage restriction 2020-06-17 14:36:00 +03:00
SemaTemplate The type of a reference to a non-type template parameter pack should 2020-06-18 17:52:13 -07:00
TableGen
Templight
Tooling [Tooling] Drop leading/trailing whitespace from compile_flags.txt lines 2020-05-19 11:20:02 +02:00
Unit Revert a few unsuccessful attempts at fixing bots. 2020-04-13 17:09:21 -04:00
VFS
clang-rename
utils/update_cc_test_checks [update_cc_test_checks.py] Handle C++ methods 2020-06-18 18:09:21 +01:00
.clang-format
CMakeLists.txt Stop passing site cfg files via --param to llvm-lit. 2020-04-07 08:20:40 -04:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [clang][Driver] Correct tool search path priority 2020-06-22 09:41:13 +01:00
lit.site.cfg.py.in [apple clang] disable in-process CC1 to preserve crashlog compatibility 2020-06-05 10:55:42 -07:00
make_test_dirs.pl