summaryrefslogtreecommitdiffstats
path: root/libcxx/src/include
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2019-05-01 16:47:30 +0000
committerDan Gohman <dan433584@gmail.com>2019-05-01 16:47:30 +0000
commit3efd6e37e4b794f38a9f9d2403e48b3f4f88e2ae (patch)
tree1f2995c5b60ac014afe6e40e89f20fe61226e2ef /libcxx/src/include
parentc86769bfbf1b4645a6f2d8cff0509b0f305f562e (diff)
downloadbcm5719-llvm-3efd6e37e4b794f38a9f9d2403e48b3f4f88e2ae.tar.gz
bcm5719-llvm-3efd6e37e4b794f38a9f9d2403e48b3f4f88e2ae.zip
[WebAssembly] WASI support for libcxx
This adds explicit support for the WASI platform to libcxx. WASI libc uses some components from musl, however it's not fully compatible with musl, so we're planning to stop using _LIBCPP_HAS_MUSL_LIBC and customize for WASI libc specifically. Differential Revision: https://reviews.llvm.org/D61336 Reviewers: sbc100, ldionne llvm-svn: 359703
Diffstat (limited to 'libcxx/src/include')
-rw-r--r--libcxx/src/include/config_elast.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/src/include/config_elast.h b/libcxx/src/include/config_elast.h
index 18391afa065..501cbc4ffeb 100644
--- a/libcxx/src/include/config_elast.h
+++ b/libcxx/src/include/config_elast.h
@@ -23,6 +23,8 @@
#define _LIBCPP_ELAST __ELASTERROR
#elif defined(__Fuchsia__)
// No _LIBCPP_ELAST needed on Fuchsia
+#elif defined(__wasi__)
+// No _LIBCPP_ELAST needed on WASI
#elif defined(__linux__) || defined(_LIBCPP_HAS_MUSL_LIBC)
#define _LIBCPP_ELAST 4095
#elif defined(__APPLE__)
OpenPOWER on IntegriCloud