This makes it possible to use the newest gcc-toolset/devtoolset on RHEL.
Details
Diff Detail
Event Timeline
It may be time to add unittests to clang/unittests/Driver/ToolChainTest.cpp for /opt/rh detection. You may use TEST(ToolChainTest, VFSGCCInstallation) as an example creating a pseudo file hierarchy in memory.
In addition, if every new GCC release requires addition to /opt/rh/gcc-toolset-$major (if I understand correctly), we probably want to switch to llvm::vfs::directory_iterator iteration and using the largest version.
Thanks!
clang/unittests/Driver/ToolChainTest.cpp | ||
---|---|---|
618 | End full sentences with a period . |
Harbormaster completed remote builds in B165047: Diff 430277.
You can get Windows bot results in the link.
Hm, the windows pre-merge checks don't fail. Just the buildbots. I wonder if the BuildCompilation() calls simply have the wrong parameters. The other calls in the file seem to always create a fake foo.cpp even if they only check the verbose info.
Also not great that printVerboseInfo() seems to print nothing in case of an error :/
@MaskRay Ignored the new test on Windows hosts now like you suggested. Does this look good?
clang/unittests/Driver/ToolChainTest.cpp | ||
---|---|---|
622 | I can use the SimpleDiagnosticConsumer class created earlier in the file. |
The original toolchain detection added root/usr to the paths which was certainly necessary on PowerPC. Since that suffix is removed in this patch, our Redhat buildbot is now broken (https://lab.llvm.org/buildbot/#/builders/57/builds/18577). @quinnp has posted an update to this at https://reviews.llvm.org/D127310.
Hi! This test is failing in some of our downstream builds.
clang/unittests/Driver/ToolChainTest.cpp | ||
---|---|---|
646 | There's a binary name missing here: {"clang", "--gcc-toolchain="} Driver strips the first argument, so the behavior of this test becomes dependent on GCC_INSTALL_PREFIX which can cause it to fail in some cases. | |
686 | Here too. |
clang/unittests/Driver/ToolChainTest.cpp | ||
---|---|---|
646 | Thanks, I pushed a commit adding the driver name. |
delete blank line