Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Optional Toolchains #14726

Closed
katre opened this issue Feb 4, 2022 · 1 comment
Closed

Implement Optional Toolchains #14726

katre opened this issue Feb 4, 2022 · 1 comment
Assignees
Labels
P1 I'll work on this now. (Assignee required) team-Configurability platforms, toolchains, cquery, select(), config transitions type: feature request

Comments

@katre
Copy link
Member

katre commented Feb 4, 2022

Now that https://github.com/bazelbuild/proposals/blob/main/designs/2022-01-21-optional-toolchains.md is approved, this is the tracking issue for the core implemenation.

Updating rules to use the new feature will be tracked by separate issues.

@katre katre added type: feature request P1 I'll work on this now. (Assignee required) team-Configurability platforms, toolchains, cquery, select(), config transitions labels Feb 4, 2022
@katre katre self-assigned this Feb 4, 2022
katre added a commit to katre/bazel that referenced this issue Feb 8, 2022
Also fix tests that access ExecGroup to use the correct Subject.

Part of work on optional toolchains (bazelbuild#14726).
bazel-io pushed a commit that referenced this issue Feb 8, 2022
Also fix tests that access ExecGroup to use the correct Subject.

Part of work on optional toolchains (#14726).

Closes #14758.

PiperOrigin-RevId: 427265632
katre added a commit to katre/bazel that referenced this issue Feb 9, 2022
bazel-io pushed a commit that referenced this issue Feb 9, 2022
Part of Optional Toolchains (#14726).

Closes #14770.

PiperOrigin-RevId: 427551659
katre added a commit to katre/bazel that referenced this issue Feb 10, 2022
Actually updating the logic to check mandatory/optional is still TODO.

Part of bazelbuild#14726.
bazel-io pushed a commit that referenced this issue Feb 10, 2022
Actually updating the logic to check mandatory/optional is still TODO.

Part of #14726.

Closes #14784.

PiperOrigin-RevId: 427810691
katre added a commit to katre/bazel that referenced this issue Feb 14, 2022
katre added a commit to katre/bazel that referenced this issue Feb 14, 2022
Also add a convenience method to create a label converter for a starlark
thread.

This makes it more easily available for other uses.

Part of Optional Toolchains (bazelbuild#14726).
bazel-io pushed a commit that referenced this issue Feb 14, 2022
Part of Optional Toolchains (#14726).

Closes #14812.

PiperOrigin-RevId: 428601902
katre added a commit to katre/bazel that referenced this issue Feb 15, 2022
katre added a commit to katre/bazel that referenced this issue Feb 15, 2022
bazel-io pushed a commit that referenced this issue Feb 15, 2022
Part of Optional Toolchains (#14726).

Closes #14825.

PiperOrigin-RevId: 428865799
katre added a commit to katre/bazel that referenced this issue Feb 15, 2022
bazel-io pushed a commit that referenced this issue Feb 16, 2022
Part of Optional Toolchains (#14726).

Closes #14823.

PiperOrigin-RevId: 429077498
bazel-io pushed a commit that referenced this issue Feb 17, 2022
Also add a convenience method to create a label converter for a starlark
thread.

This makes it more easily available for other uses.

Part of Optional Toolchains (#14726).

Closes #14815.

PiperOrigin-RevId: 429410754
katre added a commit to katre/bazel that referenced this issue Feb 18, 2022
A future change will update rules.

Part of Optional Toolchains (bazelbuild#14726).
katre added a commit to katre/bazel that referenced this issue Mar 3, 2022
ToolchainTypeRequirement.

Part of Optional Toolchains (bazelbuild#14726).
bazel-io pushed a commit that referenced this issue Mar 3, 2022
ToolchainTypeRequirement.

Part of Optional Toolchains (#14726).

Closes #14946.

PiperOrigin-RevId: 432197702
katre added a commit to katre/bazel that referenced this issue Mar 3, 2022
ToolchainTypeRequirement.

Part of Optional Toolchains (bazelbuild#14726).
katre added a commit to katre/bazel that referenced this issue Mar 31, 2022
ToolchainTypeRequirement.

Part of Optional Toolchains (bazelbuild#14726).
bazel-io pushed a commit that referenced this issue Apr 5, 2022
ToolchainTypeRequirement.

Part of Optional Toolchains (#14726).

Closes #14948.

PiperOrigin-RevId: 439641733
katre added a commit to katre/bazel that referenced this issue Apr 5, 2022
bazel-io pushed a commit that referenced this issue Apr 5, 2022
Part of Optional Toolchains (#14726).

Closes #15186.

PiperOrigin-RevId: 439663330
bazel-io pushed a commit that referenced this issue Apr 13, 2022
* Restructure `cc_test` to use a toolchain alias. This will allow `cc_test` to work in Bazel (and tests) without a "dummy" toolchain needing to be registered.
This makes `cc_test` use the legacy flow when toolchains are not registered--requiring an additional flag if they are.
This is a temporary measure to permit switching off `native.cc_test` before [Optional Toolchains](#14726) lands.

* Add coverage-related tools (e.g. collect_cc_coverage.sh) necessary for Bazel to collect coverage from cc_test(s)

PiperOrigin-RevId: 441494074
katre added a commit to katre/bazel that referenced this issue Apr 19, 2022
bazel-io pushed a commit that referenced this issue Apr 19, 2022
Part of Optional Toolchains (#14726).

Closes #15293.

PiperOrigin-RevId: 442870291
katre added a commit to katre/bazel that referenced this issue Apr 19, 2022
bazel-io pushed a commit that referenced this issue Apr 25, 2022
Part of Optional Toolchains (#14726).

Closes #15296.

PiperOrigin-RevId: 444281581
katre added a commit to katre/bazel that referenced this issue Apr 25, 2022
This can no longer throw an exception, but needs to signal in the
returned value.

Part of Optional Toolchains (bazelbuild#14726).
bazel-io pushed a commit that referenced this issue Apr 25, 2022
This can no longer throw an exception, but needs to signal in the
returned value.

Part of Optional Toolchains (#14726).

Closes #15338.

PiperOrigin-RevId: 444343903
katre added a commit to katre/bazel that referenced this issue Apr 26, 2022
They should return Starlark.NONE instead.

Part of Optional Toolchains (bazelbuild#14726).
bazel-io pushed a commit that referenced this issue Apr 27, 2022
They should return Starlark.NONE instead.

Part of Optional Toolchains (#14726).

Closes #15344.

PiperOrigin-RevId: 444869683
katre added a commit to katre/bazel that referenced this issue Apr 27, 2022
bazel-io pushed a commit that referenced this issue Apr 29, 2022
Part of Optional Toolchains (#14726).

Closes #15357.

PiperOrigin-RevId: 445399501
bazel-io pushed a commit that referenced this issue May 3, 2022
Part of #14726

RELNOTES: Toolchain types may now be optional, in addition to mandatory. See https://bazel.build/docs/toolchains#optional-toolchains for further details.
PiperOrigin-RevId: 446279106
@katre
Copy link
Member Author

katre commented May 4, 2022

This is now complete: followup work for the CC toolchain specifically will be tracked as #14727.

@katre katre closed this as completed May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 I'll work on this now. (Assignee required) team-Configurability platforms, toolchains, cquery, select(), config transitions type: feature request
Projects
None yet
Development

No branches or pull requests

1 participant