File tree 1 file changed +9
-0
lines changed 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 21
21
<LinkIncremental Condition =" $(Configuration) != 'Debug'" >false</LinkIncremental >
22
22
</PropertyGroup >
23
23
24
+ <PropertyGroup Label =" MSVC Bug Workarounds" Condition =" $(VCToolsVersion) != ''" >
25
+ <_VCToolsVersion >$([System.Version]::Parse(`$(VCToolsVersion)`).Major).$([System.Version]::Parse(`$(VCToolsVersion)`).Minor)</_VCToolsVersion >
26
+
27
+ <!-- See https://developercommunity.visualstudio.com/t/Regression-in-MSVC-1433-1434-ARM64-co/10224361 -->
28
+ <MSVCHasBrokenARM64Clamping Condition =" $(_VCToolsVersion) == '14.34'" >true</MSVCHasBrokenARM64Clamping >
29
+ </PropertyGroup >
30
+
24
31
<PropertyGroup >
25
32
<_DebugPreprocessorDefinition >NDEBUG;</_DebugPreprocessorDefinition >
26
33
<_DebugPreprocessorDefinition Condition =" $(Configuration) == 'Debug'" >_DEBUG;</_DebugPreprocessorDefinition >
50
57
<AdditionalOptions >/utf-8 %(AdditionalOptions)</AdditionalOptions >
51
58
<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 >
52
59
<AdditionalOptions Condition =" $(Configuration) != 'Debug' and $(PlatformToolset) == 'ClangCL'" >-flto %(AdditionalOptions)</AdditionalOptions >
60
+ <AdditionalOptions Condition =" $(MSVCHasBrokenARM64Clamping) == 'true' and $(Platform) == 'ARM64'" >-d2pattern-opt-disable:-932189325 %(AdditionalOptions)</AdditionalOptions >
53
61
</ClCompile >
54
62
<ClCompile Condition =" $(Configuration) == 'Debug'" >
55
63
<InlineFunctionExpansion >OnlyExplicitInline</InlineFunctionExpansion >
79
87
<LinkTimeCodeGeneration Condition =" $(SupportPGO) and $(Configuration) == 'PGUpdate'" >PGUpdate</LinkTimeCodeGeneration >
80
88
<AdditionalDependencies >advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;%(AdditionalDependencies)</AdditionalDependencies >
81
89
<AdditionalOptions Condition =" $(Configuration) != 'Debug'" >/OPT:REF,NOICF %(AdditionalOptions)</AdditionalOptions >
90
+ <AdditionalOptions Condition =" $(MSVCHasBrokenARM64Clamping) == 'true' and $(Platform) == 'ARM64'" >-d2:-pattern-opt-disable:-932189325 %(AdditionalOptions)</AdditionalOptions >
82
91
</Link >
83
92
<Lib >
84
93
<LinkTimeCodeGeneration Condition =" $(Configuration) == 'Release'" >true</LinkTimeCodeGeneration >
You can’t perform that action at this time.
0 commit comments