Replies: 2 comments 1 reply
-
No, you cannot. As you mentioned these are global. As I see it, meson tries to decouple environment configuration from subproject build definitions as much as possible. Consider splitting C++ compiler definitions into a separate cross file an layer it on top of your primary one if you know that you will be building a subproject that requires it. https://mesonbuild.com/Machine-files.html#loading-multiple-machine-files |
Beta Was this translation helpful? Give feedback.
-
Maybe meson should support more |
Beta Was this translation helpful? Give feedback.
-
Hi!
Currently my project consists of
separate subprojects. But the options
like --native-file and --cross-file seem
to be global. This leads to confusion,
for example meson forces me to
specify cpp compiler in cross-file,
even though the particular subproject
that needs cross-file, doesn't use c++.
Can I specify toolchain configs per
subproject?
Beta Was this translation helpful? Give feedback.
All reactions