Reland "[clang][Driver] Correct tool search path priority"
authorDavid Spickett <david.spickett@linaro.org>
Wed, 24 Jun 2020 15:45:21 +0000 (16:45 +0100)
committerDavid Spickett <david.spickett@linaro.org>
Thu, 25 Jun 2020 08:33:43 +0000 (09:33 +0100)
commitd6efc9811646edbfe13f06c2676fb469f1c155b1
tree1c9c35344c13831b4a260f53dac3d8c5acaa2a76
parent81469527ec99a3452c867d997d259ea70f81dda5
Reland "[clang][Driver] Correct tool search path priority"

This reverts commit f570d5810485fa6fb2e1009f795a899d79bd429f.

The test was failing on MacOS if you set
LLVM_DEFAULT_TARGET_TRIPLE. For example if you set it to
"x86_64-apple-darwin" clang actually uses
"x86_64-apple-darwin<version>".

To fix this get default triple from clang itself during the
test instead of substituting it in via lit.
clang/lib/Driver/Driver.cpp
clang/test/Driver/program-path-priority.c [new file with mode: 0644]