From 70e4c65058a76131235cd04b64231c403cbe74f3 Mon Sep 17 00:00:00 2001 From: Jan-Marek Glogowski Date: Thu, 20 May 2021 15:51:21 +0200 Subject: Install GDB pretty printers into cross-toolset Change-Id: Id42dd694514e104d03c649a19788b5c192ec35a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116116 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski --- Makefile.in | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index 8e56cd47b28b..b75d07bd137b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -280,9 +280,8 @@ bootstrap: check-if-root compilerplugins # Note: this will pipe through all gbuild targets to ... gbuild # with some translations like "check"->"unitcheck subsequentcheck uicheck" for historic reasons # -build: bootstrap fetch $(if $(CROSS_COMPILING),cross-toolset) \ - $(if $(filter check,$(MAKECMDGOALS)),$(if $(COMPILER_PLUGINS),$(if $(LODE_HOME),clang-format-check))) \ - install-gdb-printers +build: bootstrap fetch $(if $(CROSS_COMPILING),cross-toolset,install-gdb-printers) \ + $(if $(filter check,$(MAKECMDGOALS)),$(if $(COMPILER_PLUGINS),$(if $(LODE_HOME),clang-format-check))) $(MAKE) $(PARALLELISM_OPTION) $(IWYU_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $(build_goal) ifeq ($(OS),iOS) $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) ios @@ -293,7 +292,7 @@ build-non-l10n-only build-l10n-only build-nocheck check debugrun translations pa help showmodules gbuildtojson: $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@ -cross-toolset: bootstrap fetch +cross-toolset: bootstrap fetch install-gdb-printers # fetch again in case there are externals only needed on build platform ifneq ($(OS),iOS) $(MAKE) gb_Side=build $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(BUILDDIR)/Makefile fetch @@ -302,6 +301,10 @@ endif install-gdb-printers: ifneq ($(filter-out WNT MACOSX iOS,$(OS)),) +ifneq ($(INSTDIR_FOR_BUILD),$(INSTDIR)) + mkdir -p $(INSTDIR_FOR_BUILD) + $(SRCDIR)/solenv/bin/install-gdb-printers -a $(INSTDIR_FOR_BUILD) -c +endif mkdir -p $(INSTDIR) $(SRCDIR)/solenv/bin/install-gdb-printers -a $(INSTDIR) -c endif -- cgit