[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - external/postgresql

Michael Stahl (via logerrit) logerrit at kemper.freedesktop.org
Thu Feb 4 17:12:42 UTC 2021


 external/postgresql/ExternalProject_postgresql.mk |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit b7a5f5ed9fcfce61eccf116a6cccb2ceb9a75d75
Author:     Michael Stahl <michael.stahl at allotropia.de>
AuthorDate: Wed Feb 3 18:59:41 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Feb 4 18:12:02 2021 +0100

    postgresql: try to cargo-cult MSBuild arguments
    
    Extremely unclear to me whether these are useful or necessary,
    but the other MSBuild ones have them.
    
    Change-Id: Iacdd1a1e326bd9ae7c918f5b143495f613ff41d1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110385
    Tested-by: Jenkins
    Reviewed-by: Thorsten Behrens <thorsten.behrens at allotropia.de>
    (cherry picked from commit bbc5cc71fd1723db8cb5020f83db5cafc0f8a52a)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110361
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/external/postgresql/ExternalProject_postgresql.mk b/external/postgresql/ExternalProject_postgresql.mk
index cec1fb62b541..c0713161878f 100644
--- a/external/postgresql/ExternalProject_postgresql.mk
+++ b/external/postgresql/ExternalProject_postgresql.mk
@@ -25,7 +25,9 @@ $(eval $(call gb_ExternalProject_use_nmake,postgresql,build))
 $(call gb_ExternalProject_get_state_target,postgresql,build) :
 	$(call gb_Trace_StartRange,postgresql,EXTERNAL)
 	$(call gb_ExternalProject_run,build,\
-		MSBFLAGS=/p:Platform=$(gb_MSBUILD_PLATFORM) \
+		MSBFLAGS="/p:Platform=$(gb_MSBUILD_PLATFORM) \
+			$(if $(filter 160,$(VCVER)),/p:PlatformToolset=v142 /p:VisualStudioVersion=16.0 /ToolsVersion:Current) \
+			$(if $(filter 10,$(WINDOWS_SDK_VERSION)),/p:WindowsTargetPlatformVersion=$(UCRTVERSION))" \
 		$(PERL) build.pl $(gb_MSBUILD_CONFIG) libpq \
 	,src/tools/msvc)
 	$(call gb_Trace_EndRange,postgresql,EXTERNAL)


More information about the Libreoffice-commits mailing list