diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-03-15 15:16:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-03-18 21:24:45 +0100 |
commit | cc0b0f94b1888709f45bf63b98761a471f73f041 (patch) | |
tree | 9e30c5db3f60ba7117f9ad3164a46a32a1c66876 /compilerplugins | |
parent | dc2329fb66dc38f62a21b1afaca38529d7e40fa9 (diff) |
It is building the generator exe that depends on $(CLANGOUTDIR)/sharedvisitor
...or else
-MF $(CLANGOUTDIR)/sharedvisitor/generator.d
in the command line for building the generator exe could produce a failure
because the dir does not exist yet. (The dependency of compilerplugins-build on
$(CLANGOUTDIR)/sharedvisitor had been added with
adb08e892b37ea9e155abbdee4e0c9951a1d163b "make (some) clang plugins share the
same RecursiveASTVisitor" for reasons that are not clear to me.)
Change-Id: I124b95be5e8ba36dc5d7502208c61ccf045516f5
Reviewed-on: https://gerrit.libreoffice.org/69307
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/Makefile-clang.mk | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compilerplugins/Makefile-clang.mk b/compilerplugins/Makefile-clang.mk index af61c14e1664..0d73bebb8daf 100644 --- a/compilerplugins/Makefile-clang.mk +++ b/compilerplugins/Makefile-clang.mk @@ -183,14 +183,13 @@ CLANGTOOLLIBS = -lclangTooling -lclangDriver -lclangFrontend -lclangParse -lclan # Path to the clang system headers (no idea if there's a better way to get it). CLANGTOOLDEFS = -DCLANGSYSINCLUDE=$(shell $(LLVMCONFIG) --libdir)/clang/$(shell $(LLVMCONFIG) --version | sed 's/svn//')/include -$(CLANGOUTDIR)/sharedvisitor/generator$(CLANG_EXE_EXT): $(CLANGINDIR)/sharedvisitor/generator.cxx +$(CLANGOUTDIR)/sharedvisitor/generator$(CLANG_EXE_EXT): $(CLANGINDIR)/sharedvisitor/generator.cxx \ + | $(CLANGOUTDIR)/sharedvisitor $(call gb_Output_announce,$(subst $(BUILDDIR)/,,$@),$(true),GEN,1) $(QUIET)$(COMPILER_PLUGINS_CXX) $(CLANGCXXFLAGS) $(CLANGWERROR) $(CLANGDEFS) $(CLANGTOOLDEFS) $(CLANGINCLUDES) \ -DCLANGDIR=$(CLANGDIR) -DBUILDDIR=$(BUILDDIR) -I$(BUILDDIR)/config_host \ $< -o $@ -MMD -MT $@ -MP -MF $(CLANGOUTDIR)/sharedvisitor/generator.d $(CLANGTOOLLIBS) -compilerplugins-build: $(CLANGOUTDIR)/sharedvisitor - $(CLANGOUTDIR)/sharedvisitor: mkdir -p $(CLANGOUTDIR)/sharedvisitor |