diff options
author | Andreas Schneider <asn@samba.org> | 2018-09-25 18:13:26 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-10-24 06:48:08 +0000 |
commit | b28d06be7a0b730fb893b2f208af4ff864cda166 (patch) | |
tree | 16e02300ed08eb81a16db01b775d51e1f05aa4dc /buildtools | |
parent | 6de5706b4dbe70c66872abc80dd9301dccb2ee7c (diff) | |
download | samba-b28d06be7a0b730fb893b2f208af4ff864cda166.tar.gz |
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 <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/wscript | 2 |
1 files changed, 2 insertions, 0 deletions
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() |