Fix Windows build of python3
Seen on my VS2026 build: "C:\lo\online.build\workdir\UnpackedTarball\python3\PCBuild\pcbuild.sln" (Build target) (1) -> "C:\lo\online.build\workdir\UnpackedTarball\python3\PCBuild\pythonw_uwp.vcxproj" (default target) (42) -> (ClCompile target) -> C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.51.36231\include\experimental\coroutine(37,1): error C2338: static assertion failed: 'error STL1011: The /await compiler option, <experimental/coroutine>, <experimental/generator>, and <experimental/resumable> are deprecated by Microsoft and will be REMOVED SOON. They are superseded by the C++20 <coroutine> and C++23 <generator> headers. You can define _SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS to suppress this error for now.' [C:\lo\online.build\workdir\UnpackedTarball\python3\PCBuild\pythonw_uwp.vcxproj] Use CL env variable to pass the define through MSBuild to cl. Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com> Change-Id: Id9658290bfcd52150e5e1465a8c3f7e7e84de886 Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2647 Reviewed-by: Michael Stahl <michael.stahl@collabora.com> Tested-by: Jenkins CPCI <releng@collaboraoffice.com> (cherry picked from commit 2157c69794264ff0567c7327509fb1a2d4fc5cb6) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206340 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
This commit is contained in:
committed by
Xisco Fauli
parent
a5901d42c5
commit
73309dca77
+2
-1
@@ -39,7 +39,8 @@ ifeq ($(OS),WNT)
|
||||
$(call gb_ExternalProject_get_state_target,python3,build) :
|
||||
$(call gb_Trace_StartRange,python3,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
MAKEFLAGS= MSBuild.exe pcbuild.sln /t:Build $(gb_MSBUILD_CONFIG_AND_PLATFORM) \
|
||||
MAKEFLAGS= CL=-D_SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS \
|
||||
MSBuild.exe pcbuild.sln /t:Build $(gb_MSBUILD_CONFIG_AND_PLATFORM) \
|
||||
/p:bz2Dir=$(gb_UnpackedTarball_workdir)/bzip2 \
|
||||
/p:opensslIncludeDir=$(gb_UnpackedTarball_workdir)/openssl/include \
|
||||
/p:opensslOutDir=$(gb_UnpackedTarball_workdir)/openssl \
|
||||
|
||||
Reference in New Issue
Block a user