wafsamba: Support clang as C compiler
[samba.git] / 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