From 2340ac403aba8942334c9fcbefe7aa5bf58f2363 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Wed, 8 Jul 2020 17:18:53 +0200 Subject: erts: Add support for building a compilation database --- Makefile.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 16bc7b1a3a..c1bf51664b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -529,6 +529,10 @@ preloaded: ERL_TOP=$(ERL_TOP) PATH=$(BOOT_PREFIX)"$${PATH}" \ $(MAKE) opt BUILD_ALL=true +compdb: + (cd erts/emulator && ERL_TOP=$(ERL_TOP) TYPE=$(TYPE) $(MAKE) compdb) + sed -i -e '1s/^/[\n/' -e '$$s/,$$/\n]/' $(ERL_TOP)/compile_commands.json + dep depend: $(make_verbose) $(V_at)test X"$$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator && PATH=$(BOOT_PREFIX)"$${PATH}" ERL_TOP=$(ERL_TOP) $(MAKE) generate) -- cgit v1.2.1