diff options
| author | Tom Stellard <tstellar@redhat.com> | 2018-04-11 22:29:35 +0000 |
|---|---|---|
| committer | Tom Stellard <tstellar@redhat.com> | 2018-04-11 22:29:35 +0000 |
| commit | a557852719821f82025fe876607880058799c8af (patch) | |
| tree | 580e8130a50363e39aab79a5c7748ee9b748374f /clang/lib | |
| parent | 781dece55e49b4694f8d435ae438f98d0aad2e5f (diff) | |
| download | bcm5719-llvm-a557852719821f82025fe876607880058799c8af.tar.gz bcm5719-llvm-a557852719821f82025fe876607880058799c8af.zip | |
Driver: Add gcc search path for RHEL devtoolset-7
Reviewers: bruno
Reviewed By: bruno
Subscribers: bruno, cfe-commits
Differential Revision: https://reviews.llvm.org/D44130
llvm-svn: 329854
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Driver/ToolChains/Gnu.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp index f70e5a58c81..3cf66e3ed4f 100644 --- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp @@ -1785,6 +1785,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( // Non-Solaris is much simpler - most systems just go with "/usr". if (SysRoot.empty() && TargetTriple.getOS() == llvm::Triple::Linux) { // Yet, still look for RHEL devtoolsets. + Prefixes.push_back("/opt/rh/devtoolset-7/root/usr"); Prefixes.push_back("/opt/rh/devtoolset-6/root/usr"); Prefixes.push_back("/opt/rh/devtoolset-4/root/usr"); Prefixes.push_back("/opt/rh/devtoolset-3/root/usr"); |

