dotnet/runtime

[mono] Use C11 atomics in atomic.h when building with MSVC

開放

#91,748 建立於 2023年9月7日

 (3 則留言) (0 個反應) (0 位負責人)C# (5,445 個分叉)batch import
area-Infrastructure-monohelp wanted

倉庫指標

星標
 (17,886 顆星)
PR 合併指標
 (平均合併 12天 11小時) (30 天內合併 661 個 PR)

描述

There are two things we need to do:

  1. Pass the /experimental:c11atomics to the MSVC compiler for the runtime build
  2. Use C++23 when building our C++ files (they may include "atomic.h" which includes <stdatomic.h> which errors out in MSVC in C++ mode unless you're using at least C++23)

貢獻者指南