diff options
author | Andreas Schneider <asn@samba.org> | 2019-10-22 09:32:58 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-10-24 08:11:19 +0000 |
commit | ab71d72138fffff5fc89b246b67cc4b82ca24f05 (patch) | |
tree | 657023c1473c9de29751aac959f2eeda88dec2a2 /buildtools/wafsamba | |
parent | b28d06be7a0b730fb893b2f208af4ff864cda166 (diff) | |
download | samba-ab71d72138fffff5fc89b246b67cc4b82ca24f05.tar.gz |
waf: Symlink the compile database to the source dir for clangd
https://github.com/ycm-core/YouCompleteMe
https://github.com/abingham/emacs-ycmd
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Oct 24 08:11:19 UTC 2019 on sn-devel-184
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r-- | buildtools/wafsamba/wscript | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index 2b4423e2fa7..28d81ebd602 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -6,6 +6,7 @@ import os, sys from waflib import Configure, Logs, Options, Utils, Context, Errors import wafsamba from samba_utils import os_path_relpath +from samba_utils import symlink from optparse import SUPPRESS_HELP # this forces configure to be re-run if any of the configure @@ -599,6 +600,11 @@ struct foo bar = { .y = 'X', .x = 1 }; conf.load('clang_compilation_database') + # Create a symlink of the compile db for clangd + symlink(os.path.join(conf.bldnode.abspath(), 'default/compile_commands.json'), + os.path.join(conf.srcnode.abspath(), 'compile_commands.json'), + force=True) + conf.SAMBA_BUILD_ENV() |