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

David Ostrovsky david at ostrovsky.org
Tue Mar 19 17:02:29 PDT 2013


 solenv/gbuild/platform/com_MSC_class.mk |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 13bfb441d9127fe1501a3dc43e88726825c0f95a
Author: David Ostrovsky <david at ostrovsky.org>
Date:   Tue Mar 19 22:28:01 2013 +0100

    make gcc-wrapper work even with ccache
    
    Change-Id: If97cc4f2af2adb6af1217cf7b095d0f0f7831bca
    Reviewed-on: https://gerrit.libreoffice.org/2857
    Tested-by: LibreOffice gerrit bot <gerrit at libreoffice.org>
    Reviewed-by: David Ostrovsky <David.Ostrovsky at gmx.de>
    Tested-by: David Ostrovsky <David.Ostrovsky at gmx.de>

diff --git a/solenv/gbuild/platform/com_MSC_class.mk b/solenv/gbuild/platform/com_MSC_class.mk
old mode 100644
new mode 100755
index 27211ef..612342d
--- a/solenv/gbuild/platform/com_MSC_class.mk
+++ b/solenv/gbuild/platform/com_MSC_class.mk
@@ -550,10 +550,13 @@ $(call gb_ExternalProject_get_preparation_target,$(1)) : $(call gb_Executable_ge
 $(call gb_ExternalProject_get_state_target,$(1),$(2)): WRAPPERS := $(gb_AUTOCONF_WRAPPERS)
 endef
 
+# if ccache is enabled, then split it and use lastword as REAL_FOO
+# /opt/lo/bin/ccache /cygdrive/c/PROGRA~2/MICROS~2.0/VC/bin/cl.exe
+
 gb_AUTOCONF_WRAPPERS := \
-	REAL_CC="$(shell cygpath -w $(CC))" \
+	REAL_CC="$(shell cygpath -w $(lastword $(CC)))" \
 	CC="$(call gb_Executable_get_target,gcc-wrapper)" \
-	REAL_CXX="$(shell cygpath -w $(CXX))" \
+	REAL_CXX="$(shell cygpath -w  $(lastword $(CXX)))" \
 	CXX="$(call gb_Executable_get_target,g++-wrapper)" \
     LD="$(shell cygpath -w $(COMPATH)/bin/link.exe) -nologo"
 


More information about the Libreoffice-commits mailing list