[clang][driver] Remove dynamic gcc-toolset/devtoolset logic
authorTimm Bäder <tbaeder@redhat.com>
Fri, 21 Oct 2022 09:36:37 +0000 (11:36 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Wed, 26 Oct 2022 05:29:32 +0000 (07:29 +0200)
commit4a5184f4c357eeafcced3371cd8539fa0ac9f24d
tree9ef6f231a0e1e6e7d53e3747dc8c35c5d582ac39
parent3a0b6101c68928ada6c1220a8521eff41491f6a5
[clang][driver] Remove dynamic gcc-toolset/devtoolset logic

This breaks when the newest available devtoolset directory is not a
complete toolset: https://github.com/llvm/llvm-project/issues/57843

Remove this again in favor or just adding the two new directories for
devtoolset/gcc-toolset 12.

This reverts commit 35aaf548237a4f213ba9d95de53b33c5ce1eadce.
This reverts commit 9f97720268911abae2ad9d90e270358db234a1c1.

Fixes https://github.com/llvm/llvm-project/issues/57843

Differential Revision: https://reviews.llvm.org/D136435
clang/lib/Driver/ToolChains/Gnu.cpp
clang/unittests/Driver/ToolChainTest.cpp