From 24ba507b1dd70cf468a1beadea6ca6336fe1d40f Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Wed, 29 Mar 2023 00:47:13 +0100 Subject: [PATCH] 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. --- PCbuild/pyproject.props | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props index 92c7849d3bc..36c4c269d05 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; @@ -50,6 +57,7 @@ /utf-8 %(AdditionalOptions) -Wno-deprecated-non-prototype -Wno-unused-label -Wno-pointer-sign -Wno-incompatible-pointer-types-discards-qualifiers -Wno-unused-function %(AdditionalOptions) -flto %(AdditionalOptions) + -d2pattern-opt-disable:-932189325 %(AdditionalOptions) OnlyExplicitInline @@ -79,6 +87,7 @@ PGUpdate advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;%(AdditionalDependencies) /OPT:REF,NOICF %(AdditionalOptions) + -d2:-pattern-opt-disable:-932189325 %(AdditionalOptions) true