dotnet/runtime

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

Aberta

#91.748 aberto em 7 de set. de 2023

 (3 comentários) (0 reação) (0 responsável)C# (5.445 forks)batch import
area-Infrastructure-monohelp wanted

Métricas do repositório

Stars
 (17.886 estrelas)
Métricas de merge de PR
 (Mesclagem média 12d 11h) (661 fundiu PRs em 30d)

Description

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)

Guia do colaborador