dotnet/runtime

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

Open

#91 748 ouverte le 7 sept. 2023

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)C# (5 445 forks)batch import
area-Infrastructure-monohelp wanted

Métriques du dépôt

Stars
 (17 886 stars)
Métriques de merge PR
 (Merge moyen 12j 11h) (661 PRs mergées en 30 j)

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)

Guide contributeur