diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-09-25 11:15:25 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2018-09-25 11:15:25 +0200 |
commit | 5adf7aa6b75d1ab566f4bd68c4dec3ca7c188306 (patch) | |
tree | 657fa8a1bcbb6cfd82ddd7cd7e2a3bc4a5a825c7 /platform/server | |
parent | 298a6ad73c660f616a24ddcf87a2f66b650537c8 (diff) |
SCons: Fix checks for clang in env['CXX']
They would match the whole path instead of only the filename.
Diffstat (limited to 'platform/server')
-rw-r--r-- | platform/server/detect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/server/detect.py b/platform/server/detect.py index 266b0c5cc9..e921bf4a5f 100644 --- a/platform/server/detect.py +++ b/platform/server/detect.py @@ -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++" |