3 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
7 # Krzysztof KosiĆski 2014
10 Detect the Clang C compiler
13 from waflib.Tools import ccroot, ar, gcc
14 from waflib.Configure import conf
19 Finds the program clang and executes it to ensure it really is clang
21 cc = conf.find_program('clang', var='CC')
22 conf.get_cc_version(cc, clang=True)
23 conf.env.CC_NAME = 'clang'
27 conf.find_program(['llvm-ar', 'ar'], var='AR')
29 conf.gcc_common_flags()
30 conf.gcc_modifier_platform()