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

Changing cross file settings #8558

Open
mishka88ru opened this issue Mar 19, 2021 · 1 comment
Open

Changing cross file settings #8558

mishka88ru opened this issue Mar 19, 2021 · 1 comment

Comments

@mishka88ru
Copy link

Hello!

From the documentation (https://mesonbuild.com/Cross-compilation.html#changing-cross-file-settings):

Changing cross file settings
Cross file settings are only read when the build directory is set up the first time. Any changes to them after the fact will be ignored. This is the same as regular compiles where you can't change the compiler once a build tree has been set up. If you need to edit your cross file, then you need to wipe your build tree and recreate it from scratch.

Of course it is easy to manually delete the build directory or use --wipe, but it is very easy to forget about it and waste some time, while thinking that everything "should work", because the settings was changed (but actually not applied).
And, if you are sending edited cross file to someone, you must warn them "hey, wipe the builddir"...

May be that doc is old? Is there some flag to tell Meson to reconfigure cross file settings (or wipe) automatically if the file was changed? Or plans to add this feature?

@tristan957
Copy link
Contributor

@eli-schwartz is this actionable? Can the reconfigure target depend on the cross files? If not, this is closeable.

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

2 participants