summaryrefslogtreecommitdiff
path: root/make-mac.mk
diff options
context:
space:
mode:
authorAdam Ierymenko <[email protected]>2022-04-14 12:00:36 -0400
committerAdam Ierymenko <[email protected]>2022-04-14 12:00:36 -0400
commitcf03996bf261c6a3985c1e127b1ed186f6dea9a1 (patch)
treec97286bf2e459cc97a94b9e81f00eab8bee5801d /make-mac.mk
parente1a3bd3a921cd7124004dfbe5fb039cb3aa09f4f (diff)
clangd stuff
Diffstat (limited to 'make-mac.mk')
-rw-r--r--make-mac.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/make-mac.mk b/make-mac.mk
index 7c14fa67..1fd4f6fc 100644
--- a/make-mac.mk
+++ b/make-mac.mk
@@ -154,6 +154,10 @@ selftest: $(CORE_OBJS) $(ONE_OBJS) selftest.o
zerotier-selftest: selftest
+# Make compile_commands.json for clangd editor extensions. Probably works on Linux too.
+compile_commands: FORCE
+ compiledb make ZT_DEBUG=1
+
# Requires Packages: http://s.sudre.free.fr/Software/Packages/about.html
mac-dist-pkg: FORCE
packagesbuild "ext/installfiles/mac/ZeroTier One.pkgproj"