This is an archive of the discontinued LLVM Phabricator instance.

[clang][Driver] Add gcc-toolset-12 and devtoolset-12 prefixes
ClosedPublic

Authored by tbaeder on Oct 21 2022, 2:43 AM.

Details

Summary

This reverts commit 35aaf548237a4f213ba9d95de53b33c5ce1eadce and commit 9f97720268911abae2ad9d90e270358db234a1c1 and adds the prefix like we did before.

The issues with the approach are explained in https://github.com/llvm/llvm-project/issues/57843. If clang16 stops doing the gcc/devtoolset detection and relies on a config file instead, that's fine but for the time being (and for a backport to clang15), we need to fix this problem.

Diff Detail

Event Timeline

tbaeder created this revision.Oct 21 2022, 2:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 21 2022, 2:43 AM
Herald added a subscriber: StephenFan. · View Herald Transcript
tbaeder requested review of this revision.Oct 21 2022, 2:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 21 2022, 2:43 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

If clang16 stops doing the gcc/devtoolset detection and relies on a config file instead, that's fine but for the time being (and for a backport to clang15), we need to fix this problem.

I think this is fine. The test removal is fine if the future direction is to remove the Prefixes.push_back("/opt/rh/ code and rely on configuration files (https://github.com/llvm/llvm-project/issues/57843#issuecomment-1287299027).
If this is the agreed-upon direction, perhaps leave a TODO URI before Prefixes.push_back("/opt/rh/gcc-toolset-12/root/usr");

tbaeder updated this revision to Diff 470390.Oct 25 2022, 12:27 AM
MaskRay accepted this revision.Oct 25 2022, 10:17 AM
This revision is now accepted and ready to land.Oct 25 2022, 10:17 AM