summaryrefslogtreecommitdiffstats
path: root/libcxx/test
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/test
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/test')
-rw-r--r--libcxx/test/support/test_macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h
index 8e809bfc3e0..330d684e36b 100644
--- a/libcxx/test/support/test_macros.h
+++ b/libcxx/test/support/test_macros.h
@@ -148,7 +148,7 @@
// Specifically, FreeBSD does NOT have timespec_get, even though they have all
// the rest of C11 - this is PR#38495
# define TEST_HAS_C11_FEATURES
-# elif defined(__Fuchsia__)
+# elif defined(__Fuchsia__) || defined(__wasi__)
# define TEST_HAS_C11_FEATURES
# define TEST_HAS_TIMESPEC_GET
# elif defined(__linux__)
OpenPOWER on IntegriCloud