]> granicus.if.org Git - clang/commit
[WebAssembly] Support -stdlib=libc++ switch
authorSam Clegg <sbc@chromium.org>
Fri, 12 Jan 2018 17:54:49 +0000 (17:54 +0000)
committerSam Clegg <sbc@chromium.org>
Fri, 12 Jan 2018 17:54:49 +0000 (17:54 +0000)
commitad3d09ba075a882ebb9de4f094e223f321000a0d
treece0cbf492148ca262d952e0265c62de9d0491c6a
parent3ee4cc4acfa675c8cace6b05f2b41ed45a6a1033
[WebAssembly] Support -stdlib=libc++ switch

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.

Patch by Patrick Cheng!

Differential Revision: https://reviews.llvm.org/D41937

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322382 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/WebAssembly.cpp
lib/Driver/ToolChains/WebAssembly.h
test/Driver/wasm-toolchain.cpp [new file with mode: 0644]