[WebAssembly] Add crt1.o with calling lld
authorSam Clegg <sbc@chromium.org>
Fri, 27 Oct 2017 18:10:19 +0000 (18:10 +0000)
committerSam Clegg <sbc@chromium.org>
Fri, 27 Oct 2017 18:10:19 +0000 (18:10 +0000)
commit471d7afdf06e26af506b07dc70e35df2dc0ff078
tree976774cb2367b7845b11da53940d3f9661245940
parent3fa55c50263873e1c96a4611424fd67c6f0cae0e
[WebAssembly] Add crt1.o with calling lld

Also, for OS unknown targets like wasm, don't include
'unknown' in the library path. This is a fix for rL316719.

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

llvm-svn: 316777
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains/WebAssembly.cpp
clang/test/Driver/wasm-toolchain.c