From 0ec6797f8063a1a82dc492840351c3f0f58088a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 7 Oct 2019 15:07:59 +0200 Subject: [PATCH] generate make dependencies also for clang.pch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id05f2741763ef0d9e87d9804339d29aee6bc068f Reviewed-on: https://gerrit.libreoffice.org/80380 Tested-by: Jenkins Reviewed-by: Luboš Luňák --- compilerplugins/Makefile-clang.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/compilerplugins/Makefile-clang.mk b/compilerplugins/Makefile-clang.mk index 6e18ee55487a..14356d1548fd 100644 --- a/compilerplugins/Makefile-clang.mk +++ b/compilerplugins/Makefile-clang.mk @@ -146,7 +146,7 @@ compilerplugins-clean: $(CLANGOUTDIR)/clang-timestamp \ $(CLANGOUTDIR)/plugin$(CLANG_DL_EXT) \ $(CLANGOUTDIR)/sharedvisitor/*.plugininfo \ - $(CLANGOUTDIR)/sharedvisitor/clang.pch \ + $(CLANGOUTDIR)/sharedvisitor/clang.pch{,.d} \ $(CLANGOUTDIR)/sharedvisitor/sharedvisitor.{cxx,d,o} \ $(CLANGOUTDIR)/sharedvisitor/{analyzer,generator}{$(CLANG_EXE_EXT),.d,.o} \ $(CLANGOUTDIR)/sources-new.txt \ @@ -310,7 +310,11 @@ $(CLANGOUTDIR)/sharedvisitor/clang.pch: $(CLANGINDIR)/sharedvisitor/precompiled_ | $(CLANGOUTDIR)/sharedvisitor $(call gb_Output_announce,$(subst $(BUILDDIR)/,,$@),$(true),PCH,1) $(QUIET)$(CLANGDIR)/bin/clang -x c++-header $(LO_CLANG_ANALYZER_PCH_CXXFLAGS) \ - $(COMPILER_PLUGINS_TOOLING_ARGS) $< -o $@ + $(COMPILER_PLUGINS_TOOLING_ARGS) $< -o $@ -MMD -MT $@ -MP \ + -MF $(CLANGOUTDIR)/sharedvisitor/clang.pch.d + +-include $(CLANGOUTDIR)/sharedvisitor/clan.pch.d + else $(CLANGOUTDIR)/sharedvisitor/clang.pch: touch $@