build: symlink to compile_commands.json to topdir

This allows eg. rmsbolt to work OOB
This commit is contained in:
Dirk-Jan C. Binnema 2023-01-28 15:57:02 +02:00
parent 29e6c21ed8
commit 3e0c7ecdd9
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ endif
# make clean all MESON_FLAGS="-Db_sanitize=thread" CXX=clang++ CC=clang
all: $(BUILDDIR)
@$(NINJA) -C $(BUILDDIR) $(VERBOSE)
@ln -sf $(BUILDDIR)/compile_commands.json $(CURDIR) || /bin/true
$(BUILDDIR):
@$(MESON) $(MESON_FLAGS) $(BUILDDIR)