wafsamba: Support clang as C compiler
authorAndreas Schneider <asn@samba.org>
Wed, 5 Sep 2018 09:05:25 +0000 (11:05 +0200)
committerMartin Schwenke <martins@samba.org>
Thu, 6 Sep 2018 10:06:05 +0000 (12:06 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Thu Sep  6 12:06:05 CEST 2018 on sn-devel-144

buildtools/wafsamba/generic_cc.py

index 93a43ea330146918bd7889d495de0cba1a3a647e..f6f8b180f45ae6c35e267aecbe360b3aef881fdf 100644 (file)
@@ -9,7 +9,8 @@ from waflib.Configure import conftest
 
 from waflib.Tools.compiler_c import c_compiler
 
-c_compiler['default'] = ['gcc', 'generic_cc']
+c_compiler['default'] = ['gcc', 'generic_cc', 'clang']
+c_compiler['freebsd'] = ['clang', 'generic_cc', 'gcc']
 c_compiler['hpux'] = ['gcc', 'generic_cc']
 
 @conftest