summaryrefslogtreecommitdiff
path: root/platform/server
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-09-25 11:15:25 +0200
committerRémi Verschelde <rverschelde@gmail.com>2018-09-25 11:15:25 +0200
commit5adf7aa6b75d1ab566f4bd68c4dec3ca7c188306 (patch)
tree657fa8a1bcbb6cfd82ddd7cd7e2a3bc4a5a825c7 /platform/server
parent298a6ad73c660f616a24ddcf87a2f66b650537c8 (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.py2
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++"