Skip to content

bazel: expose devdarwinx86_64 toolchain via platform rules#73982

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
rickystewart:devtoolchain
Dec 17, 2021
Merged

bazel: expose devdarwinx86_64 toolchain via platform rules#73982
craig[bot] merged 1 commit intocockroachdb:masterfrom
rickystewart:devtoolchain

Conversation

@rickystewart
Copy link
Copy Markdown
Collaborator

This becomes necessary after #73819, which sets
--incompatible_enable_cc_toolchain_resolution for builds. The problem
is that this flag causes Bazel to ignore --crosstool_top in favor of
what toolchain it selects via toolchain resolution.
Therefore we update .bazelrc to specify the --platforms instead of
--crosstool_top, and add an appropriate toolchain in
build/toolchains.

Release note: None

This becomes necessary after cockroachdb#73819, which sets
`--incompatible_enable_cc_toolchain_resolution` for builds. The problem
is that this flag causes Bazel to ignore `--crosstool_top` in favor of
what toolchain it selects via [toolchain resolution](https://docs.bazel.build/versions/main/toolchains.html#toolchain-resolution).
Therefore we update `.bazelrc` to specify the `--platforms` instead of
`--crosstool_top`, and add an appropriate `toolchain` in
`build/toolchains`.

Release note: None
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@irfansharif
Copy link
Copy Markdown
Contributor

Thanks Ricky!

@rickystewart
Copy link
Copy Markdown
Collaborator Author

bors r=irfansharif

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 17, 2021

Build succeeded:

@craig craig bot merged commit 52b398f into cockroachdb:master Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants