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

Matúš Kukan matus.kukan at gmail.com
Thu Dec 1 06:46:25 UTC 2016


 solenv/gbuild/Helper.mk |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 985e93ecb44aef97995099d4fd5915afd3cab282
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Thu Dec 1 07:35:26 2016 +0100

    fix cross-toolset: gb_Helper_optional_for_host can't contain 'newline'
    
    Otherwise, the 'newline' is passed as a second parameter to
    gb_Module_add_moduledir which breaks build. :/
    
    Change-Id: I02eba5ddef9f7a6dccbb7d135a7e8c68629da9c4

diff --git a/solenv/gbuild/Helper.mk b/solenv/gbuild/Helper.mk
index 1464411..c3677c0 100644
--- a/solenv/gbuild/Helper.mk
+++ b/solenv/gbuild/Helper.mk
@@ -299,8 +299,9 @@ endef
 endif
 
 define gb_Helper_optional_for_host
-$(if $(filter build,$(gb_Side)),,$(call gb_Output_error,gb_Helper_optional_for_host: Use only when gb_Side=build))
-$(if $(filter $(1),$(BUILD_TYPE_FOR_HOST)),$(2))
+$(if $(filter build,$(gb_Side)), \
+	$(if $(filter $(1),$(BUILD_TYPE_FOR_HOST)),$(2)), \
+	$(call gb_Output_error,gb_Helper_optional_for_host: Use only when gb_Side=build))
 endef
 
 define gb_Helper_print_on_error


More information about the Libreoffice-commits mailing list