]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Emit compile receipts when building source files
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 27 Jun 2022 20:20:49 +0000 (15:20 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 28 Jun 2022 12:38:07 +0000 (07:38 -0500)
scripts/boiler.mk

index 53be02eca163f34f111e636f4086d109ec2d48bd..e7f71887d418d35dff1fdf0f24f22d9cb9bb224f 100644 (file)
@@ -326,6 +326,7 @@ define COMPILE_C_CMDS
        $(Q)mkdir -p $(dir $@)
        $(Q)$(ECHO) CC $<
        $(Q)$(strip ${SRC_CC} -o $@ -c -MD ${CPPFLAGS} ${CFLAGS} ${SRC_CFLAGS} ${INCDIRS} \
+           $(if $(findstring clang,${SRC_CC}),-MJ $(basename $@).cc.json) \
            $(addprefix -I, ${SRC_INCDIRS}) ${SRC_DEFS} ${DEFS} $<)
 endef
 else