Compile a C++ project with Bazel for x86 (32 bit)

Viewed 1584

I got a C++ project for Bazel, which by default builds for 64-bit Windows on my machine. However, I want to create a 32-bit executable, which, according to the documentation, is supported.

I have tried these commands:

bazel build :knusperli --platforms @bazel_tools//platforms:x86_32

Target @bazel_tools//platforms:x86_32 was referenced as a platform, but does not provide PlatformInfo

bazel build :knusperli --cpu i386_windows

ERROR: No toolchain found for cpu 'i386_windows'.

I thought, since Visual Studio can build 32-bit executables, it would be easy in Bazel as well, but I can't find any information on how to actually do this.

1 Answers
Related