]> granicus.if.org Git - clang/commitdiff
Revert "Driver: Don't mix system tools with devtoolset tools on RHEL" release_40 origin/release_40
authorTom Stellard <tstellar@redhat.com>
Wed, 31 May 2017 10:01:14 +0000 (10:01 +0000)
committerTom Stellard <tstellar@redhat.com>
Wed, 31 May 2017 10:01:14 +0000 (10:01 +0000)
This reverts commit r304293.

This was comitted accidentally.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_40@304296 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index a06a8a5863366190ecd253e3db1265591330b58b..9bc9ae4f6a523ff670d12360562075ed35cd0d13 100644 (file)
@@ -4112,15 +4112,6 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
 
   Distro Distro(D.getVFS());
 
-  if (Distro.IsRedhat()) {
-    // On RHEL, we want to add a bin directory that is relative to the detected
-    // gcc install, because if we are using devtoolset gcc then we want to
-    // use other tools from devtoolset (e.g. ld) instead of the standard system
-    // tools.
-    PPaths.push_back(Twine(GCCInstallation.getParentLibPath() +
-                     "/../bin").str());
-  }
-
   if (Distro.IsOpenSUSE() || Distro.IsUbuntu()) {
     ExtraOpts.push_back("-z");
     ExtraOpts.push_back("relro");