Skip to content

Conversation

chris-eibl
Copy link
Member

@chris-eibl chris-eibl commented Mar 25, 2025

and want to be able to override some ClCompile parameters,
so this must not be included erlier.
-->
<Import Project="pyproject-clangcl.props" Condition="$(PlatformToolset) == 'ClangCL' and $(__PyprojectClangCl_Props_Imported) != 'true'" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to move this further down. Otherwise, pyproject-clangcl.props would not be able to override ExceptionHandling.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we end up needing to put it earlier, then it could override ClCompile.ExceptionHandling in a Target (with an ItemGroup, rather than an ItemDefinitionGroup). Or we can probably remove the ExceptionHandling metadata from the current ItemDefinitionGroup and let it use the default.

If you prefer it this way, then let me know. This is mergeable as is.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are many ways to skin that cat. Before I found out, why using ExceptionHandling did not work, I used /EHa in AdditionalOptions.

I moved that down, just in case we'd like to override more in pyproject-clangcl.props in the future.

Like you mentioned, when we need to move it back further up - we'll find ways.

So let's merge? Up to your liking ...

@chris-eibl
Copy link
Member Author

https://github.com/python/cpython/actions/runs/14067162650/job/39392473423?pr=131730#step:4:855 is green again, so removing temporary modification in tail-call.yml

@zooba zooba merged commit 488174d into python:main Mar 25, 2025
39 checks passed
@chris-eibl chris-eibl deleted the clang-cl-SEH branch March 26, 2025 05:09
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 1, 2025
…ws (pythonGH-131730)

The /EHa option for Clang-CL behaves differently than the same option for MSVC, which is why we don't use it for both compilers.
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
…ws (pythonGH-131730)

The /EHa option for Clang-CL behaves differently than the same option for MSVC, which is why we don't use it for both compilers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants