[PATCH] D41073: Wasm: add support in libcxx

Nicholas Wilson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 11 10:12:06 PST 2017

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.

  rCXX libc++



Index: include/__config
--- include/__config
+++ include/__config
@@ -45,6 +45,8 @@
 #elif defined(_WIN32)
+#elif defined(__wasm__)
 #error Unknown object file format

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41073.126396.patch
Type: text/x-patch
Size: 367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171211/10a1ad35/attachment.bin>

More information about the cfe-commits mailing list