HomePhabricator

Fix driver test from e16c0a9a689719

Authored by thakis on Nov 24 2020, 6:43 AM.

Description

Fix driver test from e16c0a9a689719

The test failed silently if lld wasn't built alongside clang.
But the test uses -###, so the "invalid linker name in -fuse-ld=lld"
diag didn't make clang fail, and something else happened to match
"-demangle", so the test passed.

To fix, pass -B to a directory with two empty +x files (which works
on non-Windows), and look for "-demangle" instead of just -demangle.
Also force linker_version to 0 and pass a darwin triple.

Differential Revision: https://reviews.llvm.org/D92028

Details

Committed
thakisNov 24 2020, 7:51 AM
Differential Revision
D92028: Fix driver test from e16c0a9a689719
Parents
rG9c3b68dc6fe1: [llvm-mca] Fix processing thumb instruction set
Branches
Unknown
Tags
Unknown