-
Notifications
You must be signed in to change notification settings - Fork 365
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
mozc_tip32.dll
build with Bazel is not 32-bit binary
#1102
Comments
yukawa
added a commit
to yukawa/mozc
that referenced
this issue
Oct 30, 2024
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
pushed a commit
that referenced
this issue
Oct 30, 2024
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 #1102. [1]: bazelbuild/bazel#7260 [2]: https://bazel.build/concepts/platforms PiperOrigin-RevId: 691409234
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
mozc_tip32.dll
build with Bazel is actually 64-bit binary.This is a regression introduced by de7615f.
The root cause is that
--cpu
command line option has been ignored since Bazel 7.0.As we still rely on
--cpu
command line option here, we cannot remove--noincompatible_enable_cc_toolchain_resolution
until we fully migrate to--platforms
command line option.mozc/src/win32/installer/transition.bzl
Lines 35 to 53 in 74384fd
Our GYP build is not affected by this issue.
Steps to reproduce
Steps to reproduce the behavior:
Mozc64.msi
dotnet tool run wix msi decompile Mozc64.msi -x dump
dumpbin /headers dump\File\mozc_tip32.dll | findstr machine
Expected behavior
Actual behavior
Version or commit-id
74384fd
Environment
The text was updated successfully, but these errors were encountered: