rename <stdatomic.h> to <__msvc_cxx_stdatomic.h>#3183
rename <stdatomic.h> to <__msvc_cxx_stdatomic.h>#3183barcharcraz merged 7 commits intomicrosoft:mainfrom
<stdatomic.h> to <__msvc_cxx_stdatomic.h>#3183Conversation
458ba0a to
43225db
Compare
|
I think this error message will be confusing after the changes. It still says Perhaps we should say something like STL/stl/inc/__msvc_cxx_stdatomic.hpp Lines 13 to 16 in 996ad1f |
I agree the error message is now bad. I'd prefer that we fix it in a followup PR rather than this one given that we have a few hours to make 17.5p2 and we're still fighting to get a clean internal test run. I've filed #3184 to ensure we don't forget to follow up. |
we are adding C11 atomics support to the compiler/vcruntime. because of this
<stdatomic.h>needs to become part of vcruntime. This PR renames the STL's "compatibility" stdatomic.h to__msvc_cxx_stdatomic.hand updates references tostdatomic.hto instead point to__msvc_cxx_stdatomic.h. The "real" stdatomic.h is added to vcruntime in an internal mirror of this PR: MSVC-PR-423692, and it simply includes either__msvc_cxx_stdatomic.horvcruntime_c11_stdatomic.hdepending on__cplusplus.The one inclusion of "stdatomic.h" in our tests was updated, so our tests should continue to pass, even if the runtime used to build the STL does not have
stdatomic.h.