summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-09-24 04:44:54 +0000
committerNico Weber <nicolasweber@gmx.de>2014-09-24 04:44:54 +0000
commit28d692d30e88f9805c120ccfd1d55b098cfc90ce (patch)
tree6d5a85d17475dec6983eef377f5bcee61df95f2d /libcxx
parent12abbdaeabb1ca390ef53fb5d9125c6f247da381 (diff)
downloadbcm5719-llvm-28d692d30e88f9805c120ccfd1d55b098cfc90ce.tar.gz
bcm5719-llvm-28d692d30e88f9805c120ccfd1d55b098cfc90ce.zip
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?) llvm-svn: 218372
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/include/module.modulemap1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/include/module.modulemap b/libcxx/include/module.modulemap
index a0f42549692..6aeb23f028b 100644
--- a/libcxx/include/module.modulemap
+++ b/libcxx/include/module.modulemap
@@ -16,6 +16,7 @@ module std [system] {
module atomic {
header "atomic"
export *
+ requires cplusplus11
}
module bitset {
header "bitset"
OpenPOWER on IntegriCloud