How to build for 32-bit Windows using VS2019 on a 64-bit system?
Hello,
Context: An application is built on Windows using VS2019. From the same system, the application is built for 64-bit and 32-bit, in Release and Debug configurations. A "regular" VS project file contains the 4 targets and can build the 4 binaries on the same system. Now, this application wants to use RIST and needs a librist in the 4 configurations.
On a 64-bit Windows system, the commands meson setup --backend vs2019 --buildtype debug
and release
can configure distinct builds Debug and Release, but for x64 target only.
But which meson setup
command would you run to get the corresponding 32-bit configurations?
I am not familiar with meson
, especially on Windows with VS.
It seems that meson
can generate only one configuration at a time and googling a bit gave no answer to instruct meson
to generate 32-bit Windows build.
Using a dedicated native 32-bit Windows system to build and then merging the two builds, 32 and 64-bit, is not an option.
I tried to replace "x64 by "Win32" in all files after meson setup
but it failed to compile. It may have worked with .sln
and .vcxproj
files only but there are binary files in the directory tree containing "x64". Even after modifying those files, meson compile
fails with ERROR: Coredata file 'Debug-Win32\\meson-private\\coredata.dat' is corrupted. Try with a fresh build tree.
So, the hacky solution does not work, we need a clean setup for 32-bit target. But what is the right command?
Thanks for your help.