diff options
author | Hossein <hossein@libreoffice.org> | 2023-05-25 15:55:11 +0200 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2023-08-09 10:15:16 +0200 |
commit | 0c9f095a01682d8cb99a596e568bd81ae96906a5 (patch) | |
tree | 0915b2a2046de9196c6c2d4dea82817db8cda52b /solenv | |
parent | a00cf4bc779b1da85423371fec43f8638c77e423 (diff) |
tdf#155446 Fix problem with ccache on Windows
This patch fixes the recent problem with building LibreOffice with ccache
on Windows which was caused by the lack of double quotation mark between
ccache.exe and path to the MSVC compiler.
Change-Id: I1a714513ccb8cd674895d0c887013ea862d3b544
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152277
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/com_MSC_class.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/solenv/gbuild/platform/com_MSC_class.mk b/solenv/gbuild/platform/com_MSC_class.mk index ba42b0ba48df..d8cab84ff7c7 100644 --- a/solenv/gbuild/platform/com_MSC_class.mk +++ b/solenv/gbuild/platform/com_MSC_class.mk @@ -179,7 +179,7 @@ define gb_AsmObject__command $(call gb_Output_announce,$(2),$(true),ASM,3) $(call gb_Helper_abbreviate_dirs,\ mkdir -p $(dir $(1)) $(dir $(4)) && \ - "$(CC)" -nologo -EP -D_M_ARM64 $(SOLARINC) $(3) > $(subst .o,.asm,$(1)) && \ + $(CC) -nologo -EP -D_M_ARM64 $(SOLARINC) $(3) > $(subst .o,.asm,$(1)) && \ "$(ML_EXE)" $(gb_AFLAGS) -g -errorReport:prompt -o $(1) $(subst .o,.asm,$(1)), \ ) && \ echo "$(1) : $(3)" > $(4) @@ -664,8 +664,12 @@ gb_AUTOCONF_WRAPPERS = \ gb_ExternalProject_INCLUDE := \ $(subst -I,,$(subst $(WHITESPACE),;,$(SOLARINC))) +# Workaround for openssl build - it puts the CC var into additional pair of quotes. This breaks if +# CC consists of more than a single element such as when using "ccache compiler". In case the +# variables are exported for openssl, it closes and reopens the quotes after each element. gb_NMAKE_VARS = \ - CC="$(shell cygpath -w $(filter-out -%,$(CC))) $(filter -%,$(CC))" \ + CC="$(subst $(WHITESPACE),$(if $(filter openssl,$(1)),\" \", ),$(strip \ + $(shell cygpath -ws $(filter-out -%,$(CC))) $(filter -%,$(CC))))" \ INCLUDE="$(gb_ExternalProject_INCLUDE)" \ LIB="$(ILIB)" \ MAKEFLAGS= \ |