-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Print build info used when using godot --build-info #40627
Conversation
Force-pushed after using |
Well, code style contributing guide mentions using pre-commit hooks, but doesn’t list the new ones explicitly. |
Note that this won't list arguments that were specified in Also, some arguments such as |
Another way to do this was by using SCons's ARGUMENTS dictionary but that doesn't include arguments like |
Note that you can look at |
|
I believe you could also add some essential build arguments to this first, so they cannot go ignored (many have just defaults), and append the rest of the build arguments from any other source, including |
IMO just hardcoding builds args is not so useful per se. I'd prefer an approach that gives the value of some key build options like tools, target, lto, etc. (and then additionally and line args, why not, but we indeed don't care about args that only impact the build host like -j4 or verbose - what matters is what makes the binary different from another one). I'd put this behind a |
1st option: 2nd option: 3rd option: We would need to manually remove Not sure which option would be best. |
I'm not sure if this is still needed. If I get a response in some time I'll rebase it. We can close it if noone's interested. |
695da63
to
6500ada
Compare
ddc3e42
to
6986d05
Compare
6986d05
to
bf0fa87
Compare
Rebased and tested on master. It can be improved as it doesn't support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The --build-info
command line argument should be listed in the command line help (main/main.cpp
). It should also be listed in the Bash, zsh and fish shell completion files (misc/dist/shell/
). See #59153 Files changed tab for an example of doing this.
I tested this PR rebased on
It might be worth looking into stripping the |
I still think this is a bad idea with the current implementation. It needs to expose the actual configuration used, not which command line parameters were passed:
|
Closing it so that someone can work on better and cleaner version. (Maybe someone/new contributors can use this as a simple reference.) |
Print build arguments used when using
godot --version
.I couldn't find how official builds are generated without hashes so that part is still not done.
Bugsquad edit: This partially addresses #28617.