wafsamba: move clang_compilation_database usage behind an --enable-clangdb option
authorStefan Metzmacher <metze@samba.org>
Tue, 15 Dec 2020 12:39:40 +0000 (13:39 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 16 Dec 2020 12:50:37 +0000 (12:50 +0000)
commitdf73a766ab6841e9e21b84fed230c8063bb43019
tree17f758d9e251b5aab670a23c6901531ec7232e78
parent874c5fcf6daaa88eddd374f7c8d5162590b046c8
wafsamba: move clang_compilation_database usage behind an --enable-clangdb option

Writing bin/default/compile_commands.json doubles the total time used
for a noop build. That price should only be paid if someone wants to
use it actually.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
buildtools/wafsamba/samba_utils.py
buildtools/wafsamba/samba_waf18.py
buildtools/wafsamba/wscript