From 3e0c7ecdd97b2ec8528650328064693e9fff01ce Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 28 Jan 2023 15:57:02 +0200 Subject: [PATCH] build: symlink to compile_commands.json to topdir This allows eg. rmsbolt to work OOB --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 09942886..a1b638f3 100644 --- a/Makefile +++ b/Makefile @@ -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)