-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Change build flags in Godot 4 docs to current variants #6375
Conversation
Changelog: - `target=release_debug` -> `optimize=speed_race` - `target=release` -> `optimize=speed` - use `production=yes` as default option for production builds - remove headless compilation as current way to do this is non-obvious with current build targets available, should be added before merging
Also uses right LTO flag
NB: seems to complement #6316, which gets some of the other changes I mentioned but didn't figure out wrt headless builds etc. However, that PR does not seem to cover the production optimization flag changes. |
|
||
.. note:: If you want to use separate editor settings for your own Godot builds | ||
and official releases, you can enable | ||
:ref:`doc_data_paths_self_contained_mode` by creating a file called | ||
``._sc_`` or ``_sc_`` in the ``bin/`` folder. | ||
|
||
Compiling a headless/server build |
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.
Was this functionality removed?
Can't find anything in the original PR: godotengine/godot#66242
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.
As I mentioned in the original post, I couldn't find how to do this, so I removed it so as not to give bad instructions. I'll probably revert this because another PR seems to fix the headless build instructions.
#6316 has been merged, so this needs a rebase, if there is still some information worth adding, or we should close this if there isn't anything. |
I think this should be closed. If the creator thinks there is still information to be added we can re-open. |
Closing as per the above discussion. Please ping for a reopen if there is still important information to add to the current page, in which case this PR needs to be updated/rebased - or open a new one. Thanks for contributing! |
I was trying to follow the build instructions for production and found that at some point on
master
the flags inSConstruct
had changed - in particular thetarget
values now only includeeditor
,template_release
, andtemplate_debug
. I made my best guess at the proper ones to use, this probably needs a revision pass by someone who builds Godot from source more often than me.In particular, I had to remove the documentation for the
headless
section, as it's not entirely clear fromSConstruct
what you'd pass to do it. This probably also needs to be changed on the other platforms, but I haven't had the opportunity to check that yet.Changelog:
target=release_debug
->optimize=speed_trace
target=release
->optimize=speed
(may also needdebug_symbols=no
?)production=yes
as default option for production builds