Use BoolVariable in platform-specific options.
This commit is contained in:
parent
5be675eb03
commit
3e69d19116
8 changed files with 47 additions and 47 deletions
|
|
@ -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++"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue