-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Set meson level options in cross file #4636
Comments
Should that enable setting any option or only build dirs? |
dcbaker
changed the title
Set output directories in cross files
Set meson level options in cross file
Dec 17, 2018
I'm going to start with meson level options and go from there. |
This was referenced Dec 17, 2018
Seems to be a duplicate of this issue: #1433 |
I think this more of a superset of that bug. But I've added a fixes tag for that issue to the commit that issue. |
dcbaker
added a commit
to dcbaker/meson
that referenced
this issue
Mar 11, 2019
this allows options like warning_level, buildtype, and werror to be set in a cross or native file. Fixes mesonbuild#4636
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A common complaint I get is "I want to cross compile, but then the default directories are wrong for my distro!"
This is rather hard to handle in a generic way because where something goes (on Linux at least) is very much distro specific. take libdir:
Fedora has /lib64 for x86_64 libraries, and /lib32 for x86 libraries
Arch has /lib for x86_64 libraries, and /lib32 for x86 libraries
Debian has /lib/x86_64-linux-gnu and /lib/i386-linux-gnu (and additional madness)
Fortunately we have a way to provide meson information about cross compiling in the form of a cross file. It's already possible to provide language arguments this way, so setting default directories seems like an equally valid thing to do.
The text was updated successfully, but these errors were encountered: