Conan cross-compiling #10069
-
Apologies this isn't in the conan repo, they don't have a discussion section and I have received no response in their slack channel for this question :( I am trying to cross-compile using meson, but executed via the conan helper functions for meson. We have an internal tool that we use to generate conan profiles based on a set of arguments, so for example Using that information in the conanfile.py, I am trying to detect the target OS and provide the corresponding cross file to meson.
Meson does not seem to do anything with this argument when I pass it to build(), but it doesn't error out, either. I have verified that I am hitting the correct paths I expect to in this code and that the arg is indeed in that list getting passed to build(). If I try to pass it to configure() it does fail, saying that it is an unsupported argument. The cross file works as expected when I do things manually from the command line. Is this the idiomatic way to pass cross-compile files to meson when using conan? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I don't know how Conan works, but you will need to make sure that the argument is being passed to whichever Conan function is running the At a guess, the "build" function seems like it would be running |
Beta Was this translation helpful? Give feedback.
I don't know how Conan works, but you will need to make sure that the argument is being passed to whichever Conan function is running the
meson setup
command under the hood.At a guess, the "build" function seems like it would be running
ninja
after the build had been set up. What's the exact text of the error message when you pass it to configure instead?