summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-25 02:07:07 -0500
committerDavid Robillard <d@drobilla.net>2014-11-25 02:07:07 -0500
commit634a348296bbe120447ea8a2b524ec6a7ce1d6f9 (patch)
tree4551c48febfc43e4dd10ea287b5d6f317b604f17 /wscript
parentd953f1ce0e65d59c529f40ddc8da0e80db0dfbfb (diff)
Fix clang check for versioned clang executables.
Diffstat (limited to 'wscript')
-rw-r--r--wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/wscript b/wscript
index 9b8578e698..6a945ab066 100644
--- a/wscript
+++ b/wscript
@@ -148,7 +148,7 @@ def set_compiler_flags (conf,opt):
version = u[2]
# waf adds -O0 -g itself. thanks waf!
- is_clang = conf.env['CXX'][0].endswith('clang++')
+ is_clang = 'clang++' in conf.env['CXX'][0]
if conf.options.asan:
conf.check_cxx(cxxflags=["-fsanitize=address", "-fno-omit-frame-pointer"], linkflags=["-fsanitize=address"])