From e62799641e1da17294d80b9471c725d7c8dfb88a Mon Sep 17 00:00:00 2001 From: Alexis Lockwood Date: Sun, 11 Dec 2022 15:12:56 -0700 Subject: [PATCH] Fixup compile_commands.json after build Closes #1 --- .gitignore | 1 + Makefile | 1 + compile_commands.json | 1 + 3 files changed, 3 insertions(+) create mode 120000 compile_commands.json diff --git a/.gitignore b/.gitignore index 8b1ddfe..140465c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .have_docker tags +.cache # Ignore list for: c *.d diff --git a/Makefile b/Makefile index 637db04..ed11c0d 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,7 @@ OPENOCD_DIR ?= $(dir $(shell command -v openocd))/.. all: .have_docker ${DOCKER_CMD} ${DOCKER_IMAGE} make lall + sed -i -e "s%"'"'"/project/%"'"'"$$(readlink -f .)/%" ${MESON_DIR}/compile_commands.json wipe: clean all lall: ${MESON_DIR} diff --git a/compile_commands.json b/compile_commands.json new file mode 120000 index 0000000..9a39b94 --- /dev/null +++ b/compile_commands.json @@ -0,0 +1 @@ +mbuild/compile_commands.json \ No newline at end of file