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.
Paths
| Differential D41937
[WebAssembly] supports -stdlib=libc++ switch ClosedPublic Authored by patcheng on Jan 10 2018, 11:24 PM.
Details Summary 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 This revision is now accepted and ready to land.Jan 11 2018, 2:38 PM
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 Closed by commit rC322382: [WebAssembly] Support -stdlib=libc++ switch (authored by sbc). · Explain WhyJan 12 2018, 9:56 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 129398 lib/Driver/ToolChains/WebAssembly.h
lib/Driver/ToolChains/WebAssembly.cpp
test/Driver/wasm-toolchain.cpp
|
Can you add -lc++abi too? Then I can drop D41966