Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] MesonToolchain: improve cross-compilation workflow on Apple systems #9710

Closed
1 task
SSE4 opened this issue Oct 2, 2021 · 2 comments · Fixed by #10174
Closed
1 task

[feature] MesonToolchain: improve cross-compilation workflow on Apple systems #9710

SSE4 opened this issue Oct 2, 2021 · 2 comments · Fixed by #10174

Comments

@SSE4
Copy link
Contributor

SSE4 commented Oct 2, 2021

unlike CMake, meson is dumb and doesn't attempt to guess a path to the compiler in case of cross-compiling mode.
it has to be explicitly specified within cross-file

we probably can deduce required things in the conan client, but it's kinda auto-magic...
OTH it makes recipes easier

we may try to populate the contents of the cross-file similar to the examples meson provides:
https://github.com/mesonbuild/meson/blob/master/cross/iphone.txt
https://github.com/mesonbuild/meson/blob/master/cross/tvos.txt

see also:
conan-io/conan-center-index#7360
conan-io/conan-center-index#6678

/cc @ericLemanissier @madebr @SpaceIm

@lasote
Copy link
Contributor

lasote commented Nov 16, 2021

I would say that the Toolchain is supposed to do exactly that, gather the settings and write something the build system understands to represent the configuration.
Said that, I would say we should consider also adjusting the compiler as I commented here: #9922 (comment)
@memsharded

@lasote lasote added this to the 1.43 milestone Nov 16, 2021
@lasote
Copy link
Contributor

lasote commented Nov 16, 2021

I'm assigning as look into for the next release and let's see if we can finally do it for this release, wait to the next or...let's see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants