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

Support clang-cl to build x86 binaries #360

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

Conversation

yukawa
Copy link

@yukawa yukawa commented Feb 11, 2025

Unlike other toolchains defined for Windows, clang-cl toolchain has not supported x86 (32-bit) executables. This can be a hard blocker for projects that consider switching from msvc toolchain to clang-cl with supporting x86 executables.

With this commit rules_cc starts providing clang-cl toolchain to build x86 executables.

Given that protobuf team is planning to stop supporting msvc toolchain in bazel build configurations, clang-cl support in rules_cc would become much more important soon.

Closes #358.

Unlike other toolchains defined for Windows, clang-cl toolchain has not
supported x86 (32-bit) executables. This can be a hard blocker for
projects that consider switching from msvc toolchain to clang-cl with
supporting x86 executables.

With this commit rules_cc starts providing clang-cl toolchain to build
x86 executables.

Closes bazelbuild#358.
yukawa added a commit to yukawa/mozc that referenced this pull request Feb 15, 2025
This is a preparation to build Mozc for Windows with clang-cl (google#1179).

This commit pulls my pull request [1] to let rules_cc register clang-cl
as a valid toolchain to build x86 (32-bit) Windows executables. While
when and how my pull request will get merged into upstream, having these
local patches allows us to go ahead to see if we can fully migrate to
clang-cl or not.

There must be no impact on Bazel with msvc build in this commit.

 [1]: bazelbuild/rules_cc#360
hiroyuki-komatsu pushed a commit to google/mozc that referenced this pull request Feb 18, 2025
This is a preparation to build Mozc for Windows with clang-cl (#1179).

This commit pulls my pull request [1] to let rules_cc register clang-cl
as a valid toolchain to build x86 (32-bit) Windows executables. While
when and how my pull request will get merged into upstream, having these
local patches allows us to go ahead to see if we can fully migrate to
clang-cl or not.

There must be no impact on Bazel with msvc build in this commit.

 [1]: bazelbuild/rules_cc#360

PiperOrigin-RevId: 728118916
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.

clang-cl toolchain for x86 (32-bit) binaries is missing
1 participant