File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 3838
3939 <ItemDefinitionGroup >
4040 <ClCompile >
41+ <!--
42+ ExceptionHandling=Async sets MSVC's /EHa (-fasync-exceptions in clang)
43+ For clang, /EHa just has a slightly different meaning compared to MSVC,
44+ so this option is needed to handle SEH correctly
45+ (even though MSVC does not need it).
46+ Please see GH-131691 for details.
47+ -->
48+ <ExceptionHandling >Async</ExceptionHandling >
4149 <AdditionalOptions >-Wno-deprecated-non-prototype -Wno-unused-label -Wno-pointer-sign -Wno-incompatible-pointer-types-discards-qualifiers -Wno-unused-function %(AdditionalOptions)</AdditionalOptions >
4250 <AdditionalOptions Condition =" '$(Platform)' == 'Win32'" >-m32 %(AdditionalOptions)</AdditionalOptions >
4351 <AdditionalOptions Condition =" '$(Platform)' == 'x64'" >-m64 %(AdditionalOptions)</AdditionalOptions >
Original file line number Diff line number Diff line change 2525 <LinkIncremental Condition =" $(Configuration) != 'Debug'" >false</LinkIncremental >
2626 </PropertyGroup >
2727
28- <!-- We need the above overridden OutDir, so this must be imported after PropertyGroup -->
29- <Import Project =" pyproject-clangcl.props" Condition =" $(PlatformToolset) == 'ClangCL' and $(__PyprojectClangCl_Props_Imported) != 'true'" />
30-
3128 <PropertyGroup Condition =" $(TargetExt) != ''" >
3229 <TargetNameExt >$(TargetName)$(TargetExt)</TargetNameExt >
3330 <_TargetNameSep >$(TargetNameExt.LastIndexOf(`.`))</_TargetNameSep >
130127 </Midl >
131128 </ItemDefinitionGroup >
132129
130+ <!--
131+ We need the overridden OutDir (PropertyGroup Label="Globals"),
132+ and want to be able to override some ClCompile parameters,
133+ so this must not be included erlier.
134+ -->
135+ <Import Project =" pyproject-clangcl.props" Condition =" $(PlatformToolset) == 'ClangCL' and $(__PyprojectClangCl_Props_Imported) != 'true'" />
136+
133137 <UsingTask TaskName =" KillPython" TaskFactory =" CodeTaskFactory" AssemblyFile =" $(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll" >
134138 <ParameterGroup >
135139 <FileName Required =" true" />
You can’t perform that action at this time.
0 commit comments