[PATCH] D41073: Wasm: add support in libcxx

Phabricator via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 16 11:00:38 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL320925: [libcxx] Add WebAssembly support (authored by sbc, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D41073?vs=127242&id=127251#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D41073

Files:
  libcxx/trunk/include/__config
  libcxx/trunk/src/include/config_elast.h


Index: libcxx/trunk/src/include/config_elast.h
===================================================================
--- libcxx/trunk/src/include/config_elast.h
+++ libcxx/trunk/src/include/config_elast.h
@@ -24,7 +24,7 @@
 #define _LIBCPP_ELAST __ELASTERROR
 #elif defined(__Fuchsia__)
 // No _LIBCPP_ELAST needed on Fuchsia
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(_LIBCPP_HAS_MUSL_LIBC)
 #define _LIBCPP_ELAST 4095
 #elif defined(__APPLE__)
 // No _LIBCPP_ELAST needed on Apple
Index: libcxx/trunk/include/__config
===================================================================
--- libcxx/trunk/include/__config
+++ libcxx/trunk/include/__config
@@ -45,6 +45,8 @@
 #define _LIBCPP_OBJECT_FORMAT_MACHO 1
 #elif defined(_WIN32)
 #define _LIBCPP_OBJECT_FORMAT_COFF  1
+#elif defined(__wasm__)
+#define _LIBCPP_OBJECT_FORMAT_WASM  1
 #else
 #error Unknown object file format
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41073.127251.patch
Type: text/x-patch
Size: 907 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171216/ea316eaf/attachment.bin>


More information about the cfe-commits mailing list