Skip to content

cross-only build with no native compiler installed? #11249

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

You must be logged in to vote

Listing a language in the project() function is similar to invoking the add_languages() function with required: true.

In both cases, Meson will attempt to detect a build machine compiler (native) as well as a host machine compiler (cross) -- if the build is a native build, they're the same thing.

If the host machine compiler isn't found (the cross one in a cross build, the only one in a native build) then the value of "required" determines whether to error out (defaults to true). If the build machine (native) in a cross build is not found, it's ignored regardless of the required kwarg.

tl;dr -- this should work out of the box.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@eli-schwartz
Comment options

@LunarLambda
Comment options

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