Merge pull request #7582 from Calinou/scons-update-lto-parameter

This commit is contained in:
Max Hilbrunner
2023-07-22 17:38:21 +02:00
committed by Max Hilbrunner
parent a1ebe00369
commit 01e7f09e93
4 changed files with 5 additions and 11 deletions

View File

@@ -29,14 +29,8 @@ To get useful profiling information, it is **absolutely required** to use a Godo
build that includes debugging symbols. Official binaries do not include debugging
symbols, since these would make the download size significantly larger.
To get profiling data that best matches the production environment, you should
compile binaries with the following SCons options:
- For editor binaries: ``target=editor use_lto=yes``
- For debug export templates: ``target=template_debug use_lto=yes``
- For release export templates: ``target=template_release debug_symbols=yes``
- ``debug_symbols=yes`` is required as export templates are stripped from debugging symbols by default.
To get profiling data that best matches the production environment (but with debugging symbols),
you should compile binaries with the ``production=yes debug_symbols=yes`` SCons options.
It is possible to run a profiler on less optimized builds (e.g. ``target=template_debug`` without LTO),
but results will naturally be less representative of real world conditions.