From 930f42e3ffa980f820720c483e8799dcba63bece Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Tue, 26 Mar 2024 22:56:12 +0000 Subject: [PATCH] Add __config_site to libcxx This file contains emscripten-specific settings so I think we should add this to the patch. --- libcxx/include/__config_site | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libcxx/include/__config_site diff --git a/libcxx/include/__config_site b/libcxx/include/__config_site new file mode 100644 index 0000000000000..c1c848c80aba8 --- /dev/null +++ b/libcxx/include/__config_site @@ -0,0 +1,10 @@ +// Set the LIBCPP ABI version 2 under emscripten so that we get nicely aligned string +// data and other nice fixes. +#define _LIBCPP_ABI_VERSION 2 +#define _LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS +#define _LIBCPP_HAS_MUSL_LIBC +#define _LIBCPP_ABI_NAMESPACE __2 +// Emscripten doesn't use PSTL at the moment. +#define _LIBCPP_PSTL_CPU_BACKEND_SERIAL +// __libcpp_verbose_abort creases code size too much +#define _LIBCPP_AVAILABILITY_HAS_NO_VERBOSE_ABORT