From: Andreas Schneider Date: Tue, 25 Sep 2018 16:13:26 +0000 (+0200) Subject: waf: Create clang compilation database X-Git-Tag: talloc-2.3.1~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b28d06be7a0b730fb893b2f208af4ff864cda166;p=thirdparty%2Fsamba.git waf: Create clang compilation database http://clang.llvm.org/docs/JSONCompilationDatabase.html This can be used by ymcd or clangd. Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index ce5e0b48fc1..2b4423e2fa7 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -597,6 +597,8 @@ struct foo bar = { .y = 'X', .x = 1 }; if conf.env.enable_libfuzzer: conf.DEFINE('ENABLE_LIBFUZZER', 1) + conf.load('clang_compilation_database') + conf.SAMBA_BUILD_ENV()