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/server/detect.py | |
parent | 5be675eb0332ccf660a81df51701146997ef9fcb (diff) |
Use BoolVariable in platform-specific options.
Diffstat (limited to 'platform/server/detect.py')
-rw-r--r-- | platform/server/detect.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/server/detect.py b/platform/server/detect.py index 94cdd0da73..04b38f280d 100644 --- a/platform/server/detect.py +++ b/platform/server/detect.py @@ -19,9 +19,9 @@ def can_build(): def get_opts(): - + from SCons.Variables import BoolVariable return [ - ('use_llvm', 'Use the LLVM compiler', 'no'), + BoolVariable('use_llvm', 'Use the LLVM compiler', False), ] @@ -52,7 +52,7 @@ def configure(env): ## Compiler configuration - if (env["use_llvm"] == "yes"): + if env['use_llvm']: if ('clang++' not in env['CXX']): env["CC"] = "clang" env["CXX"] = "clang++" |