You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incompatible flag --incompatible_enable_cc_toolchain_resolution will be enabled by default in the next major release (Bazel 7.0), thus breaking rules_swift. Please migrate to fix this and unblock the flip of this flag.
We're already using --incompatible_enable_cc_toolchain_resolution to use an hermetic LLVM tooclchain (using https://github.com/grailbio/bazel-toolchain) and the CC=clang check prevents us to run rules_swift. Without this check, everything works fine and as expected, so maybe we could simply remove the check? I can't think of a way to check if the flag is set or not.
Checking `CC=clang` in the implementation of the `repository_rule`
doesn't work when using `--incompatible_enable_cc_toolchain_resolution`
(for example when using https://github.com/grailbio/bazel-toolchain to
bring a hermetic LLVM toolchain).
Moving the check for LLVM the `repository_rule` to the Swift toolchain
impl used by all `rule`s instead solves this issue.
I tested that the check (the failure message) is triggered on Linux
with:
- only `gcc` installed
- a LLVM toolchain configured in `WORKSPACE` but without
`--incompatible_enable_cc_toolchain_resolution`
Fixes#991
Incompatible flag
--incompatible_enable_cc_toolchain_resolution
will be enabled by default in the next major release (Bazel 7.0), thus breaking rules_swift. Please migrate to fix this and unblock the flip of this flag.The flag is documented here: bazelbuild/bazel#7260.
Please check the following CI builds for build and test results:
Never heard of incompatible flags before? We have documentation that explains everything.
If you have any questions, please file an issue in https://github.com/bazelbuild/continuous-integration.
The text was updated successfully, but these errors were encountered: