[Libreoffice-commits] core.git: compilerplugins/Makefile-clang.mk

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Thu May 23 18:29:57 UTC 2019


 compilerplugins/Makefile-clang.mk |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit b2fbbd196401b3610cf06c669b6e9add12c9a19b
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu May 23 14:11:39 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu May 23 20:28:50 2019 +0200

    Avoid putting generator.dwo in current working dir
    
    At least some versions of GCC put the -gsplit-dwarf .dwo file in cwd when
    compiling and linking is done together in one compiler invocation, see
    <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90575> "-gsplit-dwarf leaves
    behind .dwo file in cwd".
    
    Change-Id: I1b418e400a3e8107997fbbfd7f87ef3ac9fbbd28
    Reviewed-on: https://gerrit.libreoffice.org/72841
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/compilerplugins/Makefile-clang.mk b/compilerplugins/Makefile-clang.mk
index 3b19d1eafdd2..0a6f81e10d21 100644
--- a/compilerplugins/Makefile-clang.mk
+++ b/compilerplugins/Makefile-clang.mk
@@ -198,7 +198,10 @@ $(CLANGOUTDIR)/sharedvisitor/generator$(CLANG_EXE_EXT): $(CLANGINDIR)/sharedvisi
 	$(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)
+        -c $< -o $(CLANGOUTDIR)/sharedvisitor/generator.o -MMD -MT $@ -MP \
+        -MF $(CLANGOUTDIR)/sharedvisitor/generator.d
+	$(QUIET)$(COMPILER_PLUGINS_CXX) $(CLANGCXXFLAGS) $(CLANGOUTDIR)/sharedvisitor/generator.o \
+        -o $@ $(CLANGTOOLLIBS)
 
 $(CLANGOUTDIR)/sharedvisitor:
 	mkdir -p $(CLANGOUTDIR)/sharedvisitor


More information about the Libreoffice-commits mailing list