dotnet/runtime

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

Open

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

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)C# (5,445 fork)batch import
area-Infrastructure-monohelp wanted

倉庫指標

Star
 (17,886 star)
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)

貢獻者指南