Conan integration, how to set 'needs_exe_wrapper' #10127
-
Hi, I'm trying to set up cross compilation solely via conan and the cross files generated by the conan meson toolchain. Running into the well-known issue of the sanity check running on iOS binaries and failing. I wish I could add I've opened an MR for them here: conan-io/conan#10796 But in the meantime, what would be the idiomatic way of detecting this case in meson.build and deactivating the sanity check? I've seen functions for getting properties, but not for setting them. In fact I suspect that once the cross file is consumed there's no way of changing anything after it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This would violate Meson's design rationale, that projects should not encode information about the build environment into What you can do, if conan allows it, is pass a second cross file, this one containing your user specified properties. Meson allows layering cross files such that some settings come from one file and other settings come from another file. And of course, conan can fix the bug, and Meson's design rationale to force it to be fixed in the cross file generation by conan, means that projects won't end up with conan specific workarounds for conan bugs inside their project definitions. :) |
Beta Was this translation helpful? Give feedback.
This would violate Meson's design rationale, that projects should not encode information about the build environment into
meson.build
. It's the same reason you cannot define the C/C++ compiler inmeson.build
.What you can do, if conan allows it, is pass a second cross file, this one containing your user specified properties. Meson allows layering cross files such that some settings come from one file and other settings come from another file.
And of course, conan can fix the bug, and Meson's design rationale to force it to be fixed in the cross file generation by conan, means that projects won't end up with conan specific workarounds for conan bugs inside their project definitions. :)