summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2024-01-09 17:32:22 (GMT)
committerGitHub <noreply@github.com>2024-01-09 17:32:22 (GMT)
commitad849b4ba008bf4ff97151651e619259ddb4fc18 (patch)
tree05adae806e6e2dcb7d0fc0ffc459a8c3ebe9e12e /PCbuild
parentbe89ee5649031e08f191bf596fa20a09c5698079 (diff)
downloadcpython-ad849b4ba008bf4ff97151651e619259ddb4fc18.zip
cpython-ad849b4ba008bf4ff97151651e619259ddb4fc18.tar.gz
cpython-ad849b4ba008bf4ff97151651e619259ddb4fc18.tar.bz2
gh-113650: Add workaround option for MSVC ARM64 bug affecting string encoding (GH-113836)
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/pyproject.props2
1 files changed, 2 insertions, 0 deletions
diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index 06c6957..16ad91e 100644
--- a/PCbuild/pyproject.props
+++ b/PCbuild/pyproject.props
@@ -29,6 +29,7 @@
<!-- See https://developercommunity.visualstudio.com/t/Regression-in-MSVC-1433-1434-ARM64-co/10224361 -->
<MSVCHasBrokenARM64Clamping Condition="$(_VCToolsVersion) == '14.34' or $(_VCToolsVersion) == '14.35'">true</MSVCHasBrokenARM64Clamping>
+ <MSVCHasBrokenARM64SignExtension Condition="$(_VCToolsVersion) == '14.37'">true</MSVCHasBrokenARM64SignExtension>
</PropertyGroup>
<PropertyGroup>
@@ -62,6 +63,7 @@
<AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">-Wno-deprecated-non-prototype -Wno-unused-label -Wno-pointer-sign -Wno-incompatible-pointer-types-discards-qualifiers -Wno-unused-function %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="$(Configuration) != 'Debug' and $(PlatformToolset) == 'ClangCL'">-flto %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="$(MSVCHasBrokenARM64Clamping) == 'true' and $(Platform) == 'ARM64'">-d2pattern-opt-disable:-932189325 %(AdditionalOptions)</AdditionalOptions>
+ <AdditionalOptions Condition="$(MSVCHasBrokenARM64SignExtension) == 'true' and $(Platform) == 'ARM64'">-d2ssa-patterns-all- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions Condition="$(GenerateSourceDependencies) == 'true'">/sourceDependencies "$(IntDir.Trim(`\`))" %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<ClCompile Condition="$(Configuration) == 'Debug'">