From cbe14c87c68af19aba3a0001fe35c5310a083ff0 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Wed, 29 Mar 2023 15:33:29 +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 e398b333572e..b1b04472bb50 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 @@ $(EnableControlFlowGuard) /utf-8 %(AdditionalOptions) true + -d2pattern-opt-disable:-932189325 %(AdditionalOptions) OnlyExplicitInline @@ -76,6 +84,7 @@ PGUpdate advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;%(AdditionalDependencies) /OPT:REF,NOICF %(AdditionalOptions) + -d2:-pattern-opt-disable:-932189325 %(AdditionalOptions) true