Add lto scons option, defaulting to "none".

This commit is contained in:
Lukas Tenbrink
2024-09-21 12:52:50 +02:00
parent 57bd88ad99
commit 5f7cf05043
8 changed files with 69 additions and 0 deletions

View File

@@ -326,6 +326,14 @@ def options(opts, env):
("none", "custom", "debug", "speed", "speed_trace", "size"),
)
)
opts.Add(
EnumVariable(
"lto",
"Link-time optimization",
"none",
("none", "auto", "thin", "full"),
)
)
opts.Add(BoolVariable("debug_symbols", "Build with debugging symbols", True))
opts.Add(BoolVariable("dev_build", "Developer build with dev-only debugging code (DEV_ENABLED)", False))
opts.Add(BoolVariable("verbose", "Enable verbose output for the compilation", False))