Merge branch 'develop'
[jack2.git] / waflib / Tools / clangxx.py
blob152013ce7a1cda111188719ee6e3e5238ca0f574
1 #!/usr/bin/env python
2 # encoding: utf-8
3 # Thomas Nagy 2009-2018 (ita)
5 """
6 Detect the Clang++ C++ compiler
7 """
9 from waflib.Tools import ccroot, ar, gxx
10 from waflib.Configure import conf
12 @conf
13 def find_clangxx(conf):
14 """
15 Finds the program clang++, and executes it to ensure it really is clang++
16 """
17 cxx = conf.find_program('clang++', var='CXX')
18 conf.get_cc_version(cxx, clang=True)
19 conf.env.CXX_NAME = 'clang'
21 def configure(conf):
22 conf.find_clangxx()
23 conf.find_program(['llvm-ar', 'ar'], var='AR')
24 conf.find_ar()
25 conf.gxx_common_flags()
26 conf.gxx_modifier_platform()
27 conf.cxx_load_tools()
28 conf.cxx_add_flags()
29 conf.link_add_flags()