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

Revert "Remove an obsolete workaround from .bazelrc" #1103

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

yukawa
Copy link
Collaborator

@yukawa yukawa commented Oct 30, 2024

Description

This reverts commit de7615f.

It turns out that --cpu command line option will be silently ignored with Bazel 7.0 and later unless --noincompatible_enable_cc_toolchain_resolution option is specified. Otherwise mozc_tip32.dll will be built as a 64-bit executable.

This is a temporary workaround until until we fully migrate to --platforms command line option.

This commit only affects Windows build with Bazel. Other build configurations such as GYP build on Windows are not affected.

Closes #1102

Issue IDs

Steps to test new behaviors (if any)

A clear and concise description about how to verify new behaviors (if any).

  • OS: Windows 11 23H2
  • Steps:
    1. Build Mozc and install Mozc64.msi
    2. Make sure that mozc_tip32.dll is built as a 32-bit executable.

This reverts commit de7615f.

It turns out that --cpu command line option will be silently ignored
with Bazel 7.0 and later unless

  --noincompatible_enable_cc_toolchain_resolution

option is specified [1]. Otherwise 'mozc_tip32.dll' will be built as
a 64-bit executable.

This is a temporary workaround until until we fully migrate to

--platforms

command line option [2].

This commit only affects Windows build with Bazel. Other build
configurations such as GYP build on Windows are not affected.

Closes google#1102.

 [1]: bazelbuild/bazel#7260
 [2]: https://bazel.build/concepts/platforms
@hiroyuki-komatsu hiroyuki-komatsu merged commit ad3bee0 into google:master Oct 30, 2024
1 check passed
@hiroyuki-komatsu
Copy link
Collaborator

We have merged this PR.
Thank you for the contribution!

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.

mozc_tip32.dll build with Bazel is not 32-bit binary
2 participants