From 8758796fc9bab80d2d405678d8874a860b14974f Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 24 Sep 2014 04:44:54 +0000 Subject: [PATCH] Mark module atomic as cplusplus11. With clang, the header atomic requires __has_feature(cxx_atomic), which is only true in c++11 mode. Because of this, when using modules in c++98 with libc++ compilation of the std module would fail without this change, PR21002. (With gcc, only gcc4.7+ is needed, no c++11. But gcc doesn't have modules yet, and the module.modulemap language can't express things like "this is only required if the compiler is clang". If gcc gets module support, we'd probably have a module.modulemap file for each compiler that libc++ supports?) git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@218372 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/module.modulemap | 1 + 1 file changed, 1 insertion(+) diff --git a/include/module.modulemap b/include/module.modulemap index a0f42549..6aeb23f0 100644 --- a/include/module.modulemap +++ b/include/module.modulemap @@ -16,6 +16,7 @@ module std [system] { module atomic { header "atomic" export * + requires cplusplus11 } module bitset { header "bitset"