Referenced implementation from Fuchsia and Darwin Toolchain.
Still only support CST_Libcxx.
Now checks that the argument is really '-stdlib=libc++', and display error.
Also, now will pass -lc++ and -lc++abi to the linker.
 Differential  D41937  
[WebAssembly] supports -stdlib=libc++ switch Authored by patcheng on Jan 10 2018, 11:24 PM. 
Details Referenced implementation from Fuchsia and Darwin Toolchain. Still only support CST_Libcxx. Now checks that the argument is really '-stdlib=libc++', and display error. Also, now will pass -lc++ and -lc++abi to the linker. 
Diff Detail Event TimelineComment Actions Nice. I happened to just upload a similar (but orthogonal) patch: https://reviews.llvm.org/D41966 
 Comment Actions Thanks @sbc100. BTW I don't have commit access. When it's ready to be committed, I would need help with that. Thanks  | ||||||
Can you add -lc++abi too? Then I can drop D41966