Ability to specify if subproject should be cross-compiled or not #11120
-
Project A can be cross-compiled (it's a library for command-line parsing), so does not specify Project B must be cross-compiled (single-platform embedded project), but wants to use Project A as a subproject dependency for Is there any way for Project B to tell meson it should build Project A using the native compiler? Or would Project A need to expose a custom build option (i.e. Something like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is a known issue, that subprojects are always built for the host machine, and never for the build machine. Unfortunately fixing it is extremely non-trivial (I've looked at it before). This is something I think we want to fix, but it's a big project with some non-obvious implications. I've created an issue for this (since we don't seem to have one yet) |
Beta Was this translation helpful? Give feedback.
-
For documentation's sake, how do we do this now? Run |
Beta Was this translation helpful? Give feedback.
This is a known issue, that subprojects are always built for the host machine, and never for the build machine. Unfortunately fixing it is extremely non-trivial (I've looked at it before). This is something I think we want to fix, but it's a big project with some non-obvious implications.
I've created an issue for this (since we don't seem to have one yet)