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

Register CC toolchain from rules_cc #1163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yukawa
Copy link
Collaborator

@yukawa yukawa commented Jan 20, 2025

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

Steps to test new behaviors (if any)

  • OS: Windows 11 24H2
  • Steps:
    1. Build Mozc64.msi with Bazel
    2. Install Mozc64.msi
    3. dumpbin /headers "C:\Program Files (x86)\Mozc\mozc_tip32.dll" | findstr machine
    4. Confirm 14C machine (x86) is shown.

This reworks my previous PR google#1156 [1] to make Windows bazel build
compatible with

  --noincompatible_enable_cc_toolchain_resolution

option, which is now unconditionally enabled (google#1102) (google#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.

 [1]: 4aad25e
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.

1 participant