Skip to content

CMake build: Add /CETCOMPAT for x64, /guard:MEOW for various architectures - #5652

Merged
Stephan T. Lavavej (StephanTLavavej) merged 5 commits into
microsoft:mainfrom
matbech:patch-1
Sep 10, 2025
Merged

CMake build: Add /CETCOMPAT for x64, /guard:MEOW for various architectures#5652
Stephan T. Lavavej (StephanTLavavej) merged 5 commits into
microsoft:mainfrom
matbech:patch-1

Conversation

@matbech

@matbech Mathias Berchtold (matbech) commented Jul 23, 2025

Copy link
Copy Markdown
Contributor

Fixes #5646. Fixes #5651.

@matbech
Mathias Berchtold (matbech) requested a review from a team as a code owner July 23, 2025 15:37
@github-project-automation github-project-automation Bot moved this to Initial Review in STL Code Reviews Jul 23, 2025
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) added bug Something isn't working build Related to the build system labels Jul 23, 2025
Comment thread stl/CMakeLists.txt Outdated
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) moved this from Initial Review to Work In Progress in STL Code Reviews Jul 23, 2025
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) changed the title cmake build: Adds /CETCOMPAT for x86/x64 Sep 2, 2025
Comment thread stl/CMakeLists.txt Outdated
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) changed the title cmake build: Adds /CETCOMPAT for x64 Sep 4, 2025
@StephanTLavavej

Copy link
Copy Markdown
Member

My apologies for how long it took to get around to this. I audited the MSBuild machinery and extracted what I believe are the most important missing options. I verified both the GitHub and MSVC-internal builds, checking that the expected options are present or not for all architectures.

There are probably a few more missing flags but I believe this is a strict improvement.

@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) moved this from Work In Progress to Ready To Merge in STL Code Reviews Sep 4, 2025
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) moved this from Ready To Merge to Merging in STL Code Reviews Sep 10, 2025
@StephanTLavavej

Copy link
Copy Markdown
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 10b879e into microsoft:main Sep 10, 2025
39 checks passed
@github-project-automation github-project-automation Bot moved this from Merging to Done in STL Code Reviews Sep 10, 2025
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for noticing and fixing this very subtle build divergence! 🦅 👁️ 😻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working build Related to the build system

2 participants