Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Driver] Update GCC libraries detection logic for Gentoo.
Summary: 1. Find GCC's LDPATH from the actual GCC config file. 2. Avoid picking libraries from a similar named tuple if the exact tuple is installed. Reviewers: mgorny, chandlerc, thakis, rnk Reviewed By: mgorny, rnk Subscribers: cfe-commits, mgorny Differential Revision: https://reviews.llvm.org/D45233 llvm-svn: 329512
- Loading branch information
Showing
16 changed files
with
145 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...g/test/Driver/Inputs/gentoo_linux_gcc_4.9.x_tree/etc/env.d/gcc/config-x86_64-pc-linux-gnu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CURRENT=x86_64-pc-linux-gnu-4.9.3 |
10 changes: 10 additions & 0 deletions
10
clang/test/Driver/Inputs/gentoo_linux_gcc_4.9.x_tree/etc/env.d/gcc/x86_64-pc-linux-gnu-4.9.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.x" | ||
ROOTPATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.x" | ||
GCC_PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.x" | ||
LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.x:/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.x/32:/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.x/x32" | ||
MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.x/man" | ||
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.x/info" | ||
STDCXX_INCDIR="g++-v4" | ||
CTARGET="x86_64-pc-linux-gnu" | ||
GCC_SPECS="" | ||
MULTIOSDIRS="../lib64:../lib32" |
1 change: 1 addition & 0 deletions
1
clang/test/Driver/Inputs/gentoo_linux_gcc_4.9.x_tree/etc/gentoo-release
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Gentoo Base System release 2.3 |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters