Register CC toolchain from rules_cc
#1163
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This reworks my previous PR #1156 that was to make Windows bazel build compatible with
--noincompatible_enable_cc_toolchain_resolution
option, which is now unconditionally enabled (#1102) (#1112).
The difference from the previous approach is that this commit uses CC toolchains defined by
rules_cc
rather than the ones implicitly defined by the Bazel itself.Given that
rules_cc
becomes the new home of CC-related rules and configurations, hopefully this change will reduce the likelihood of future troubles.There must be no observable behavior change in the final artifacts.
Issue IDs
mozc_tip32.dll
build with Bazel is not 32-bit binary #1102--noincompatible_enable_cc_toolchain_resolution
in Windows build #1112Steps to test new behaviors (if any)
Mozc64.msi
with BazelMozc64.msi
dumpbin /headers "C:\Program Files (x86)\Mozc\mozc_tip32.dll" | findstr machine
14C machine (x86)
is shown.