[PATCH] D127310: [clang][driver] fix to correctly set devtoolset on RHEL
Quinn Pham via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 8 08:06:23 PDT 2022
quinnp created this revision.
Herald added a project: All.
quinnp requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.
This patch correctly sets the devtoolset on RHEL.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D127310
Files:
clang/lib/Driver/ToolChains/Gnu.cpp
Index: clang/lib/Driver/ToolChains/Gnu.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Gnu.cpp
+++ clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2149,7 +2149,7 @@
if (ToolsetVersion > ChosenToolsetVersion) {
ChosenToolsetVersion = ToolsetVersion;
- ChosenToolsetDir = "/opt/rh/" + ToolsetDir.str();
+ ChosenToolsetDir = "/opt/rh/" + ToolsetDir.str() + "/root/usr";
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127310.435168.patch
Type: text/x-patch
Size: 465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220608/7cc91be1/attachment.bin>
More information about the cfe-commits
mailing list