Skip to content

[sleef] Use SEH on Windows while checking for CPU extensions#48143

Merged
BillyONeal merged 2 commits intomicrosoft:masterfrom
mlt:sleef-seh
Nov 6, 2025
Merged

[sleef] Use SEH on Windows while checking for CPU extensions#48143
BillyONeal merged 2 commits intomicrosoft:masterfrom
mlt:sleef-seh

Conversation

@mlt
Copy link
Copy Markdown
Contributor

@mlt mlt commented Nov 5, 2025

MS Windows does not raise SIGILL to be caught as expected by sleef while checking for supported CPU extensions. We use standard SEH stuff on that platform. Otherwise this port is unusable on older CPUs.

  • Changes comply with the maintainer guide.
  • SHA512s are updated for each updated download.
  • The "supports" clause reflects platforms that may be fixed by this new version.
  • Any fixed CI baseline entries are removed from that file.
  • Any patches that are no longer applied are deleted from the port's directory.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

@mlt
Copy link
Copy Markdown
Contributor Author

mlt commented Nov 5, 2025

@microsoft-github-policy-service agree

Windows does not raise SIGILL,
although it is emulated by MINGW runtime.
@BillyONeal
Copy link
Copy Markdown
Member

BillyONeal commented Nov 5, 2025

This is entirely a product code change so we need to see this submitted upstream. Please submit this to sleef's maintainers, link to where that happened in a comment, then mark "Ready for review"

@BillyONeal BillyONeal added the depends:upstream-changes Waiting on a change to the upstream project label Nov 5, 2025
@BillyONeal BillyONeal marked this pull request as draft November 5, 2025 20:46
@mlt
Copy link
Copy Markdown
Contributor Author

mlt commented Nov 5, 2025

Merged upstream. Note that there has been some refactoring, so the code moved a bit.
I'm not sure how long it will take for the release, but I thought it is worth pursuing as I use this version ATM.

@mlt mlt marked this pull request as ready for review November 5, 2025 23:53
@BillyONeal BillyONeal removed the depends:upstream-changes Waiting on a change to the upstream project label Nov 6, 2025
Copy link
Copy Markdown
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

I tried to use upstream's patch but it doesn't apply cleanly on this version (file is different).

Thanks for submitting upstream!

@BillyONeal BillyONeal enabled auto-merge (squash) November 6, 2025 20:17
@BillyONeal BillyONeal disabled auto-merge November 6, 2025 20:17
@BillyONeal BillyONeal enabled auto-merge (squash) November 6, 2025 20:17
Copy link
Copy Markdown
Member

@MahmoudGSaleh MahmoudGSaleh left a comment

Choose a reason for hiding this comment

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

LGTM

@BillyONeal BillyONeal merged commit c4e4a71 into microsoft:master Nov 6, 2025
17 of 18 checks passed
@mlt mlt deleted the sleef-seh branch November 6, 2025 22:54
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.

4 participants