Do not use CROSSTOOL to select cc_toolchain

This is a preparation for flipping
--incompatible_disable_cc_toolchain_label_from_crosstool_proto, which will stop
reading default_toolchain fields from the crosstool and will rely on
cc_toolchain_suite.toolchains containing entries for cpu without compiler.

Migrations docs can be found here:
https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disallow-using-crosstool-to-select-the-cc_toolchain-label.

RELNOTES: None.
PiperOrigin-RevId: 216470358
This commit is contained in:
hlopko 2018-10-10 05:40:58 +02:00 committed by Marcel Hlopko
parent 364065d6a5
commit fccbfbf395
1 changed files with 2 additions and 1 deletions

View File

@ -521,7 +521,8 @@ message CrosstoolRelease {
// not used for that purpose (or anything else) anymore. Please also don't add
// new uses of this field.
optional string default_target_cpu = 3;
// The default toolchain to use for each given cpu.
// Deprecated: The default toolchain to use for each given cpu.
// Use cc_toolchain_suite.toolchains with only cpu specified instead
repeated DefaultCpuToolchain default_toolchain = 4;
// All the toolchains in this release.