[Driver] Drop $DEFAULT_TRIPLE-$name as a fallback program name
authorFangrui Song <i@maskray.me>
Thu, 8 Apr 2021 04:01:10 +0000 (21:01 -0700)
committerFangrui Song <i@maskray.me>
Thu, 8 Apr 2021 04:01:10 +0000 (21:01 -0700)
commit8ac5e440615dd3dc9fd2eb88c0bad32fdc5f678c
tree90d3e5129f5a5a1ef4f5f2f9a4e89c0f5fcdaca7
parent65b1103798df7bc84137766d813315b4cc54df3e
[Driver] Drop $DEFAULT_TRIPLE-$name as a fallback program name

D13340 introduced this behavior which is not needed even for mips.
This was raised on https://lists.llvm.org/pipermail/cfe-dev/2020-May/065437.html
but no action was taken.

This was raised again in https://lists.llvm.org/pipermail/cfe-dev/2021-April/067974.html
"The LLVM host/target TRIPLE padding drama on Debian"
as it caused confusion. This patch drops the behavior.

Differential Revision: https://reviews.llvm.org/D99996
clang/lib/Driver/Driver.cpp
clang/test/Driver/program-path-priority.c