3 # Thomas Nagy 2009-2018 (ita)
6 Detect the Clang++ C++ compiler
9 from waflib
.Tools
import ccroot
, ar
, gxx
10 from waflib
.Configure
import conf
13 def find_clangxx(conf
):
15 Finds the program clang++, and executes it to ensure it really is clang++
17 cxx
= conf
.find_program('clang++', var
='CXX')
18 conf
.get_cc_version(cxx
, clang
=True)
19 conf
.env
.CXX_NAME
= 'clang'
23 conf
.find_program(['llvm-ar', 'ar'], var
='AR')
25 conf
.gxx_common_flags()
26 conf
.gxx_modifier_platform()