C++ compiler is selected via a constraint #25128
Labels
team-Configurability
platforms, toolchains, cquery, select(), config transitions
team-Rules-CPP
Issues for C++ rules
type: bug
Description of the bug:
Bazel selects C++ compiler using a compiler constraint. Because of this, users need to create a new platform for each compiler. This doesn't really match the expectation of what a platform should describe.
The problem is most obvious on Windows, which has several C++ compilers.
Proposed solution
What should happen instead is that the compiler is selected by
--compiler
flag (that has arbitrary string value). This approach is well tested and works well at Google.Caveat is that this is now an incompatible change. Compiler constraint was introduced very early, before Bazel team build up experience with platforms and toolchains.
The text was updated successfully, but these errors were encountered: