projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f4959b
)
[Driver] Delete toplevel i386-gnu/gcc detection in favor of i386-gnu alias triple...
author
Fangrui Song
<i@maskray.me>
Sat, 20 Mar 2021 05:50:35 +0000
(22:50 -0700)
committer
Fangrui Song
<i@maskray.me>
Sat, 20 Mar 2021 05:50:36 +0000
(22:50 -0700)
This is used by hurd.c (usr/lib/gcc/i386-gnu/4.6.0) but we can leverage
the existing alias triple detection.
clang/lib/Driver/ToolChains/Gnu.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Driver/ToolChains/Gnu.cpp
b/clang/lib/Driver/ToolChains/Gnu.cpp
index
906bac5
..
3c1fc87
100644
(file)
--- a/
clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/
clang/lib/Driver/ToolChains/Gnu.cpp
@@
-2538,9
+2538,6
@@
void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
// triple.
{"i386-linux-gnu/gcc/" + CandidateTriple.str(), "../../..",
(TargetArch == llvm::Triple::x86 &&
- TargetTriple.getOS() != llvm::Triple::Solaris)},
- {"i386-gnu/gcc/" + CandidateTriple.str(), "../../..",
- (TargetArch == llvm::Triple::x86 &&
TargetTriple.getOS() != llvm::Triple::Solaris)}};
for (auto &Suffix : Suffixes) {