diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-09-25 00:37:17 -0400 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-09-25 14:36:30 -0400 |
commit | 3e69d19116e8d0d64fcbb096d925249e5d3596ed (patch) | |
tree | db29307c60393a6b47bd71717ff336743abfb0b5 /platform/windows | |
parent | 5be675eb0332ccf660a81df51701146997ef9fcb (diff) | |
download | redot-engine-3e69d19116e8d0d64fcbb096d925249e5d3596ed.tar.gz |
Use BoolVariable in platform-specific options.
Diffstat (limited to 'platform/windows')
-rw-r--r-- | platform/windows/detect.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 1b7a992668..92f2e078c8 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -49,7 +49,7 @@ def can_build(): def get_opts(): - from SCons.Variables import EnumVariable + from SCons.Variables import BoolVariable, EnumVariable mingw32 = "" mingw64 = "" @@ -65,7 +65,7 @@ def get_opts(): return [ ('mingw_prefix_32', 'MinGW prefix (Win32)', mingw32), ('mingw_prefix_64', 'MinGW prefix (Win64)', mingw64), - ('use_lto', 'Use link time optimization (when using MingW)', 'no'), + BoolVariable('use_lto', 'Use link time optimization (when using MingW)', False), EnumVariable('debug_symbols', 'Add debug symbols to release version', 'yes', ('yes', 'no', 'full')), ] @@ -263,7 +263,7 @@ def configure(env): env['LD'] = mingw_prefix + "g++" env["x86_libtheora_opt_gcc"] = True - if (env["use_lto"] == "yes"): + if env['use_lto']: env.Append(CCFLAGS=['-flto']) env.Append(LINKFLAGS=['-flto']) |