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

Set meson level options in cross file #4636

Open
dcbaker opened this issue Dec 14, 2018 · 4 comments
Open

Set meson level options in cross file #4636

dcbaker opened this issue Dec 14, 2018 · 4 comments
Assignees

Comments

@dcbaker
Copy link
Member

dcbaker commented Dec 14, 2018

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.

@jpakkane
Copy link
Member

Should that enable setting any option or only build dirs?

@dcbaker dcbaker changed the title Set output directories in cross files Set meson level options in cross file Dec 17, 2018
@dcbaker
Copy link
Member Author

dcbaker commented Dec 17, 2018

I'm going to start with meson level options and go from there.

@Venemo
Copy link

Venemo commented Feb 2, 2019

Seems to be a duplicate of this issue: #1433

@dcbaker
Copy link
Member Author

dcbaker commented Feb 4, 2019

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 dcbaker self-assigned this Mar 11, 2019
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants