ncw created this revision.
Herald added subscribers: cfe-commits, aheejin, jfb.
Herald added a reviewer: EricWF.

It turns out that this is the only change required in libcxx for it to compile 
with the new `wasm32-unknown-unknown-wasm` target recently added to Clang.

I haven't done much testing of whether libc++ //works// with Wasm, but 
committing the compile fix is at least a start.

Adding Marshall Clow and Dan Gohman as reviewers since they landed the last 
Emscripten-related changes in libcxx.


Repository:
  rCXX libc++

https://reviews.llvm.org/D41073

Files:
  include/__config


Index: include/__config
===================================================================
--- include/__config
+++ 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


Index: include/__config
===================================================================
--- include/__config
+++ 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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to