-
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
Use native files for saving the command line #4637
Comments
Do you have a use-cases for that? Since we have --wipe already I'm not sure why you would want the command line. |
Yes, one of the mesa developers has a lot of different machines he works on (it's a hardware driver thing), and wants to be able to get the configuration back in a form he can copy to another machine. BTW, thanks for doing the --wipe thing. |
Sounds legit to me, shouldn't be too hard to implement. |
Alternatively, if the native file was a bit more fleshed out, we could make this output a native file for later usage. It has the additional niceness that it can be used in other projects directly. |
I actually like the native file idea. We could just replace the internal cmd_line.txt with a native file, which has the added advantage of not allowing us to break the format accidentally |
We don't write configure options in the native/cross files, so that would be a whole new concept in itself. |
https://github.com/keith-packard/picolibc/tree/80528c684 has a collection of As pointed by @eli-schwartz on IRC, Autotools have CONFIG_SITE
|
I think we should add something like this to native/cross files:
Those would be default values that could still be overridden by Should be easy to implement and that covers the picolibc use-case. It makes a lot of sense to me, it's really common when cross compiling to a given platform to have specific values for options. |
you can already set paths via the for other things that's what #3001 is about, which I'm working on. |
Yes, having meson automatically load |
I support this feature of having native files config things. I am having the need for this with so many permutations of configs. It seems that having something in default_options (such as C++ standard) cannot be overriden when using Meson from the command line at first invocation. |
We already have native config files, https://mesonbuild.com/Native-environments.html, this proposal is about serializing all of the arguments on the command line to a native file instead of a one-off format. |
Several people have asked for the ability to get their command line back in a form they can feed back into meson. Since we already store that in a nice form it should be pretty easy to print it back for them.
The text was updated successfully, but these errors were encountered: