3 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
7 # Thomas Nagy 2009-2016 (ita)
10 Detect the Clang++ C++ compiler
13 from waflib.Tools import ccroot, ar, gxx
14 from waflib.Configure import conf
17 def find_clangxx(conf):
19 Finds the program clang++, and executes it to ensure it really is clang++
21 cxx = conf.find_program('clang++', var='CXX')
22 conf.get_cc_version(cxx, clang=True)
23 conf.env.CXX_NAME = 'clang'
27 conf.find_program(['llvm-ar', 'ar'], var='AR')
29 conf.gxx_common_flags()
30 conf.gxx_modifier_platform()