diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-10-05 01:01:57 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-10-05 01:01:57 +0000 |
commit | f7e0ecb65db61491bb5575dcbf63704256aef984 (patch) | |
tree | 1a801a0ac8d3fd3e111c15626e9316c48e2401ec /clang/lib/Driver/ToolChains.cpp | |
parent | 80fdd7c0b7378c54da3a9fb13248663f54b8b8ec (diff) | |
download | bcm5719-llvm-f7e0ecb65db61491bb5575dcbf63704256aef984.tar.gz bcm5719-llvm-f7e0ecb65db61491bb5575dcbf63704256aef984.zip |
Implement the feature I was originally driving toward when I started
this saga. Teach the driver to detect a GCC installed along side Clang
using the existing InstalledDir support in the Clang driver. This makes
a lot of Clang's behavior more automatic when it is installed along side
GCC.
Also include the first test cases (more to come, honest) which test both
the install directory behavior, and the version sorting behavior to show
that we're actually searching for the best candidate GCC installation
now.
llvm-svn: 141145
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
-rw-r--r-- | clang/lib/Driver/ToolChains.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index 493dc97ddcb..33b1916d6a5 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/lib/Driver/ToolChains.cpp @@ -1587,6 +1587,7 @@ public: D.PrefixDirs.end()); Prefixes.push_back(D.SysRoot); Prefixes.push_back(D.SysRoot + "/usr"); + Prefixes.push_back(D.InstalledDir); // Loop over the various components which exist and select the best GCC // installation available. GCC installs are ranked by version number. |