Skip to content

Cross compilation by default #10904

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

You must be logged in to vote

If nothing else, you can do

if not meson.is_cross_build()
    error('must be invoked with "meson setup--cross-file=./toolchain.ini" or via meson-wrapper.sh')
endif

This does make it impossible for devs to overlook the script.

I don't know off the top of my head if this is otherwise possible, unless maybe you can specify a cross file in default_options? Haven't tried it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xclaesse
Comment options

Answer selected by xclaesse
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