Open steeve opened 4 years ago
cc: @katre maybe we should track this too?
This looks like an incomplete dup of bazelbuild/bazel#11181. Am I reading things wrong? If yes, the differences are very subtle...
@jmmv github's been having issues for the last 3 days, and I think it created the ticket twice when I was updating it. I'll close bazelbuild/bazel#11181 and update this one. Sorry for the noise.
(or maybe the issue was the chair-keyboard interface of my computer)
The work here is larger than just multi_arch_split: almost all of the Apple rules need to switch away from using --cpu
and --crosstool_top
and to using --platforms
.
Any updates here?
Description of the problem / feature request:
Let
apple_common.multi_arch_split
transition onplatforms
/constraints instead ofcrosstool_top
/cpu
.Feature requests: what underlying problem are you trying to solve with this feature?
According to osx_archs.bzl, Apple toolchains are already constraint aware and thus can be selected by specifying a platform.
However, according to AppleCrosstoolTransition,
apple_common.multi_arch_split
is still implemented by transitingcrosstool_top
andcpu
instead of platforms.This creates weird cases for downstream rules which have to transition on
crosstool_top
/cpu
instead of letting the constraints apply directly to their toolchains as well. For instance, rules could exposeCcInfo
and thus be used as dependencies of a rule usingmulti_arch_split
. See https://github.com/bazelbuild/rules_go/pull/2451.Looking at
rules_apple
, I see the starlark transitions are are implemented butapple_common.multi_arch_split
is still used.What operating system are you running Bazel on?
macOS
What's the output of
bazel info release
?Any other information, logs, or outputs that you want to share?