SCons: make use_lto a global option and opt-in for iphone

Supersedes #12553, see discussion in #12552.
This commit is contained in:
Rémi Verschelde
2017-11-02 09:11:29 +01:00
parent 51b7fd90e6
commit cefdb34f6c
4 changed files with 7 additions and 4 deletions

View File

@ -143,6 +143,7 @@ opts.Add('p', "Platform (alias for 'platform')", '')
opts.Add('platform', "Target platform (%s)" % ('|'.join(platform_list), ), '')
opts.Add(EnumVariable('target', "Compilation target", 'debug', ('debug', 'release_debug', 'release')))
opts.Add(BoolVariable('tools', "Build the tools a.k.a. the Godot editor", True))
opts.Add(BoolVariable('use_lto', 'Use linking time optimization', False))
# Components
opts.Add(BoolVariable('deprecated', "Enable deprecated features", True))