Skip to content

how to specify --native-file and --cross-file for subprojectcs? #12602

Closed Answered by eli-schwartz
stsp asked this question in Q&A
Discussion options

You must be logged in to vote

You can specify both native files and cross files for the top level project. It will mean that all subprojects also have both a native file and a cross file.

Subprojects that use cross targets will use the cross compiler, subprojects that use native targets will use the native compiler. What meson doesn't allow is using multiple native compilers in a single build (or multiple cross compilers, although that one is something we should implement as a new feature for cases where you are targeting multiple cross architectures. For example, QEMU needs this.)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@stsp
Comment options

@eli-schwartz
Comment options

@stsp
Comment options

@eli-schwartz
Comment options

Answer selected by stsp
@stsp
Comment options

@stsp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants