From: Steve Dower Date: Wed, 29 Mar 2023 14:33:39 +0000 (+0100) Subject: gh-103097: Add workaround for Windows ARM64 compiler bug (GH-103098) X-Git-Tag: v3.10.11~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4abf1f1e3fe91f905faa6dd269c7a9aefea2a5a8;p=thirdparty%2FPython%2Fcpython.git gh-103097: Add workaround for Windows ARM64 compiler bug (GH-103098) See https://developercommunity.visualstudio.com/t/Regression-in-MSVC-1433-1434-ARM64-co/10224361 for details of the issue. It only applies to version 14.34. --- diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props index f3068978fcbc..28fa0e8bf287 100644 --- a/PCbuild/pyproject.props +++ b/PCbuild/pyproject.props @@ -21,6 +21,13 @@ false + + <_VCToolsVersion>$([System.Version]::Parse(`$(VCToolsVersion)`).Major).$([System.Version]::Parse(`$(VCToolsVersion)`).Minor) + + + true + + <_DebugPreprocessorDefinition>NDEBUG; <_DebugPreprocessorDefinition Condition="$(Configuration) == 'Debug'">_DEBUG; @@ -47,6 +54,7 @@ true $(EnableControlFlowGuard) /utf-8 %(AdditionalOptions) + -d2pattern-opt-disable:-932189325 %(AdditionalOptions) OnlyExplicitInline @@ -76,6 +84,7 @@ PGUpdate advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;%(AdditionalDependencies) /OPT:REF,NOICF /CGTHREADS:1 /PDBTHREADS:1 %(AdditionalOptions) + -d2:-pattern-opt-disable:-932189325 %(AdditionalOptions) true