1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Use BoolVariable in platform-specific options.

This commit is contained in:
Elliott Sales de Andrade
2017-09-25 00:37:17 -04:00
parent 5be675eb03
commit 3e69d19116
8 changed files with 47 additions and 47 deletions

View File

@@ -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++"