[Libreoffice-commits] core.git: solenv/gbuild

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue May 26 16:57:48 UTC 2020


 solenv/gbuild/LinkTarget.mk |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit b149c61ba93d7a6e84f44d3a7f04e00643e615a1
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue May 26 15:43:07 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue May 26 18:57:11 2020 +0200

    Drop -I$(dir $(2)) also from gb_*Object__tool_command
    
    ...after ecbaf980625a9e7b06abe91c7c70e78f6ad469a7 "-I$(dir $(3)) in
    gb_CObject__command_pattern is no longer needed" and
    f218f8f6c8c587d2d78679f935093329f145fede "-I$(dir $(3)) in
    gb_CObject__command_pattern is no longer needed" had already dropped it from
    plain gb_CObject__command_pattern.  (0349c738da5970d9f0fc10d7cf4d7b766ce10e13
    "support for compiler rewriters" had created gb_*Object__tool_command at a time
    when plain gb_*Object__command still contained those -I arguments, so had
    presumably just copied them over without a specific additional need to have them
    in the tool_command variants; and ecbaf980625a9e7b06abe91c7c70e78f6ad469a7 and
    f218f8f6c8c587d2d78679f935093329f145fede then just failed to also remove them
    from the tool_command variants.)
    
    Presence of the -I arguments in the tool_command variants caused e.g. `make
    COMPILER_PLUGIN_TOOL=fakebool` to fail with
    
    > sw/source/filter/ww8/ww8par.cxx:97:10: error: replace <...> include form with "..." for inclusion of a source file next to the current source file, sw/source/filter/ww8/../../core/inc/DocumentRedlineManager.hxx [loplugin:includeform]
    > #include <../../core/inc/DocumentRedlineManager.hxx>
    >          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Change-Id: I7ef513507375dcee5d88db53cef58433f7f68e36
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94867
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/solenv/gbuild/LinkTarget.mk b/solenv/gbuild/LinkTarget.mk
index 287948b12a72..a18d0a67b1da 100644
--- a/solenv/gbuild/LinkTarget.mk
+++ b/solenv/gbuild/LinkTarget.mk
@@ -98,7 +98,6 @@ $(call gb_Helper_abbreviate_dirs,\
 		$(T_CFLAGS) $(T_CFLAGS_APPEND) \
 		$(if $(EXTERNAL_CODE),$(gb_CXXFLAGS_Wundef),$(gb_DEFS_INTERNAL)) \
 		-c $(2) \
-		-I$(dir $(2)) \
 		$(INCLUDE) \
 		)
 endef
@@ -114,7 +113,6 @@ $(call gb_Helper_abbreviate_dirs,\
 		$(T_OBJCFLAGS) $(T_OBJCFLAGS_APPEND) \
 		$(if $(EXTERNAL_CODE),$(gb_CXXFLAGS_Wundef),$(gb_DEFS_INTERNAL)) \
 		-c $(2) \
-		-I$(dir $(2)) \
 		$(INCLUDE) \
 		)
 endef
@@ -130,7 +128,6 @@ $(call gb_Helper_abbreviate_dirs,\
 		$(T_CXXFLAGS) $(T_CXXFLAGS_APPEND) \
 		$(if $(EXTERNAL_CODE),$(gb_CXXFLAGS_Wundef),$(gb_DEFS_INTERNAL)) \
 		-c $(2) \
-		-I$(dir $(2)) \
 		$(INCLUDE) \
 		)
 endef
@@ -146,7 +143,6 @@ $(call gb_Helper_abbreviate_dirs,\
 		$(T_OBJCXXFLAGS) $(T_OBJCXXFLAGS_APPEND) \
 		$(if $(EXTERNAL_CODE),$(gb_CXXFLAGS_Wundef),$(gb_DEFS_INTERNAL)) \
 		-c $(2) \
-		-I$(dir $(2)) \
 		$(INCLUDE) \
 		)
 endef
@@ -162,7 +158,6 @@ $(call gb_Helper_abbreviate_dirs,\
 		$(T_CXXCLRFLAGS) $(T_CXXCLRFLAGS_APPEND) \
 		$(if $(EXTERNAL_CODE),$(gb_CXXFLAGS_Wundef),$(gb_DEFS_INTERNAL)) \
 		-c $(2) \
-		-I$(dir $(2)) \
 		$(INCLUDE) \
 		)
 endef


More information about the Libreoffice-commits mailing list