Skip to content

Conversation

@mochaaP
Copy link
Contributor

@mochaaP mochaaP commented Dec 9, 2025

Closes: #14233
Fixes: f070670

@mochaaP mochaaP requested a review from jpakkane as a code owner December 9, 2025 14:24
self.is_found = True
elif self.clib_compiler.get_id() == 'msvc':
feature_flag = '/experimental:c11atomics'
std_args = self.clib_compiler.get_option_std_args(None, None)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if this call is acceptable in dependency lookup.

<vcruntime_c11_stdatomic.h> rejects __STDC_VERSION__ < 201112L, and MSVC defaults to C99

Copy link
Contributor Author

@mochaaP mochaaP Dec 9, 2025

Choose a reason for hiding this comment

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

If we don't care about the symbol being available, just test for compiler version >=19.35.32124 + the header being there, and always provide /experimental:c11atomics

@mochaaP mochaaP force-pushed the mochaa/msvc-stdatomic branch from b262c0e to ccca7fe Compare December 9, 2025 15:23
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.

msvc: use /experimental:c11atomics when finding stdatomic

1 participant