summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/wasm-toolchain.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [WebAssembly] Modernize include path handlingSam Clegg2019-06-131-0/+2
| | | | | | | | | | Move include path construction from InitHeaderSearch::AddDefaultIncludePaths in the Driver which appears to be the more modern/correct way of doing things. Differential Revision: https://reviews.llvm.org/D63030 llvm-svn: 363241
* [WebAssembly] Cleanup toolchain test files. NFC.Sam Clegg2019-06-101-8/+20
| | | | | | | | | | | | Summary: Split up long lines to improve test readability. Subscribers: dschuff, jgravelle-google, aheejin, sunfish, jfb, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D63081 llvm-svn: 362959
* [WebAssembly] Use the "wasm32-wasi" triple in testsDan Gohman2019-04-301-6/+6
| | | | | | | | | | | Similar to https://reviews.llvm.org/D61334, update clang tests to use the "wasm32-wasi" triple, removing the "-musl" environment and omitting the "-unknown" vendor. Differential Revision: https://reviews.llvm.org/D61338 Reviewer: sbc100 llvm-svn: 359630
* [WebAssembly] Reland of rL356953 (4dcf3acce6)Sam Clegg2019-03-281-4/+4
| | | | | | | | | The previous patch was missing GetProgramPath() in the return value of getLinkerPath(). See https://reviews.llvm.org/D59743 llvm-svn: 357195
* Revert "[WebAssembly] Don't use default GetLinkerPath"Derek Schuff2019-03-271-4/+4
| | | | | | | This reverts commit 4dcf3acce6d7455fd079d8e57441906ca2bad254. (reverts LLVM SVN r356953) llvm-svn: 357127
* [WebAssembly] Don't use default GetLinkerPathSam Clegg2019-03-251-4/+4
| | | | | | | | | | | | | | | | | We can't (don't want to) honor the same set of "-fuse-ld" flags with WebAssembly since the ELF linkers (ld.lld, ld.gnu, etc) don't work with wasm object files. Instead we implement our own linker finding logic, similar or other non-ELF platforms like MSVC. We've had a few issues with CLANG_DEFAULT_LINKER overriding the WebAssembly linker which doesn't make sense since there is no generic linker that can handle WebAssembly today. Differential Revision: https://reviews.llvm.org/D59743 llvm-svn: 356953
* [WebAssembly] COWS has been renamed to WASI.Dan Gohman2019-01-161-6/+6
| | | | llvm-svn: 351298
* [WebAssembly] Support multilibs for wasm32 and add a wasm OS that uses itDan Gohman2019-01-151-3/+20
| | | | | | | | | | | | This adds support for multilib paths for wasm32 targets, following [Debian's Multiarch conventions], and also adds an experimental OS name in order to test it. [Debian's Multiarch conventions]: https://wiki.debian.org/Multiarch/ Differential Revision: https://reviews.llvm.org/D56553 llvm-svn: 351164
* [WebAssembly] Remove use of lld -flavor flagSam Clegg2018-08-071-4/+4
| | | | | | | | | This flag is deprecated. The preferred way to select the lld flavor is by calling it by one of its aliases. Differential Revision: https://reviews.llvm.org/D50395 llvm-svn: 339163
* [WebAssembly] Force use of lld for test/Driver/wasm-toolchain.c(pp)David Greene2018-08-071-2/+2
| | | | | | | | | | lld is the only supported linker that works for WebAssembly, so ensure clang is using it for this test. This gets the tests passing when configuring clang to use a different linker by default. Differential Revision: https://reviews.llvm.org/D49897 llvm-svn: 339158
* [WebAssembly] Don't pass -ffunction-section/-fdata-sectionsSam Clegg2018-01-311-15/+2
| | | | | | | | | llvm currently forces both of these to true to passing them is redundant. Differential Revision: https://reviews.llvm.org/D37831 llvm-svn: 323897
* Fix test on Windows that was added in r322382.Douglas Yung2018-01-121-6/+6
| | | | | | | | The test was using "%clang++" which on Windows became "clang.exe++". Use %clangxx instead. Reviewed by Paul Robinson llvm-svn: 322417
* [WebAssembly] Support -stdlib=libc++ switchSam Clegg2018-01-121-0/+36
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 llvm-svn: 322382
OpenPOWER on IntegriCloud