Skip to content

Support 32-bit c++ windows toolchain #10963

@matthauck

Description

@matthauck

Description of the problem / feature request:

Bazel should support compiling 32-bit c++ build targets on windows.

Feature requests: what underlying problem are you trying to solve with this feature?

I need to compile c++ binaries that run on 32-bit windows.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Tried specifying bazel build ... --cpu x86_32 and bazel build ... --cpu i386 (from bazelbuild/platforms), and both errored out with something like:

ERROR: C:/users/username/_bazel_username/pkyimvir/external/local_config_cc/BUILD:47:1: in cc_toolchain_suite rule @local_config_cc//:toolchain: cc_toolchain_suite '@local_config_cc//:toolchain' does not contain a toolchain for cpu 'x86_32'

What operating system are you running Bazel on?

Windows 10 / Windows 2019

What's the output of bazel info release?

release 2.1.0

Have you found anything relevant by searching the web?

Found claims on stackoverflow that bazel does not support this, and could not find another github issue specifically requesting it.

e.g. https://stackoverflow.com/questions/53291191/compile-a-c-project-wit-bazel-for-x86-32-bit#comment93518681_53318502

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2We'll consider working on this in future. (Assignee optional)area-WindowsWindows-specific issues and feature requeststeam-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: feature request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions