Skip to content

Cleanup architecture detection and atomics support - #11083

Open
jschmidt-icinga wants to merge 1 commit into
masterfrom
modernize-cmake-architecture
Open

jschmidt-icinga wants to merge 1 commit into
masterfrom
modernize-cmake-architecture

Conversation

@jschmidt-icinga

@jschmidt-icinga jschmidt-icinga commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Most of this wasn't used anywhere except for determining atomics support. There was even a (severely broken) check_cxx_source_compiles snippet already in place, which is what you are supposed to do to detect if atomics support requires a library (instead of comparing with an architecture string).

This fixes the snippet and uses it for a proper check to determine support, with and without library.

This also removes an obsolete check if the override keyword is supported on MSVC.

This has been split off from #10936 to make the full PR a bit smaller and easier to review.

Most of this wasn't used anywhere except for determining atomics
support. There was even a (severely broken) `check_cxx_source_compiles`
snippet already in place, which is what you are supposed to do to
detect if atomics support requires a library independently of the
processor architecture.

This fixes the snippet and uses it for a proper check to determine
support, with and without library.

This also removes an obsolete check if the override keyword is supported
on MSVC.
@cla-bot cla-bot Bot added the cla/signed label Oct 6, 2026
@jschmidt-icinga
jschmidt-icinga marked this pull request as ready for review October 6, 2026 12:44
@jschmidt-icinga jschmidt-icinga added this to the 2.17.0 milestone Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants