1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

SCons: Fix checks for clang in env['CXX']

They would match the whole path instead of only the filename.
This commit is contained in:
Rémi Verschelde
2018-09-25 11:15:25 +02:00
parent 298a6ad73c
commit 5adf7aa6b7
3 changed files with 5 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ def configure(env):
## Compiler configuration
if env['use_llvm']:
if ('clang++' not in env['CXX']):
if ('clang++' not in os.path.basename(env['CXX'])):
env["CC"] = "clang"
env["CXX"] = "clang++"
env["LINK"] = "clang++"