-
|
To build x86 executable on x86_64 machine, CMake provide a easy way: But meson doesn't seem to provide similar way, instead cross_file. I write cross_file.txt: and run meson: It tells me no C compiler specified. I have specified the backend as vs, why? So what's the best practice? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I don't think MSVC can cross compile, you need to activate the x86 env, Simply run Meson inside the Meson has the |
Beta Was this translation helpful? Give feedback.
I don't think MSVC can cross compile, you need to activate the x86 env, Simply run Meson inside the
x86 Native Tools Command Prompt for VS 2022terminal instead ofx64 Native Tools Command Prompt for VS 2022.Meson has the
--vsenvargument to enable the MSVC env for you (that's the default when usingvsbackend) but that can only activate the x64 env currently. I would like to add--vsenv x86syntax at some point.