summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/fuse-ld.c
Commit message (Collapse)AuthorAgeFilesLines
* On Windows, fix fuse-ld.c test when lld is provided explictly in -DCMAKE_LINKERAlexandre Ganea2019-11-291-2/+2
|
* Test linux only for absolute paths in the -fuse-ld optionYuanfang Chen2019-08-011-0/+1
| | | | | | | Some target do not use this option and may emit a error message for using it. llvm-svn: 367602
* Vary Windows toolchain selection by -fuse-ldDave Lee2017-11-061-0/+26
| | | | | | | | | | | | | | | | | Summary: This change allows binutils to be used for linking with MSVC. Currently, when using an MSVC target and `-fuse-ld=bfd`, the driver produces an invalid linker invocation. Reviewers: rnk, compnerd Reviewed By: compnerd Subscribers: smeenai, cfe-commits Differential Revision: https://reviews.llvm.org/D39509 llvm-svn: 317511
* Fix tests with CLANG_DEFAULT_LINKERJonas Hahnfeld2017-01-081-2/+2
| | | | | | | | | I originally requested this to be tested in D25263 but in the end forgot to make sure that it was done. Differential Revision: https://reviews.llvm.org/D28289 llvm-svn: 291389
* Accept absolute paths in the -fuse-ld option.Peter Zotov2016-03-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | This patch extends the -fuse-ld option to accept a full path to an executable and use it verbatim to invoke the linker. There are generally two reasons to desire this. The first reason relates to the sad truth is that Clang is retargetable, Binutils are not. While any Clang from a binary distribution is sufficient to compile code for a wide range of architectures and prefixed BFD linkers (e.g. installed as /usr/bin/arm-none-linux-gnueabi-ld) as well as cross-compiled libc's (for non-bare-metal targets) are widely available, including on all Debian derivatives, it is impossible to use them together because the -fuse-ld= option allows to specify neither a linker prefix nor a full path to one. The second reason is linker development, both when porting existing linkers to new architectures and when working on a new linker such as LLD. Differential Revision: http://reviews.llvm.org/D17952 llvm-svn: 262996
* Revert "broken test. uses system ld.gold"Derek Schuff2015-08-241-6/+0
| | | | | | We should check in a basic_nacl_tree that works and also fix --sysroot llvm-svn: 245910
* broken test. uses system ld.goldDerek Schuff2015-08-241-0/+6
| | | | llvm-svn: 245909
* clang/test/Driver/fuse-ld.c: Really fix to match dos path.NAKAMURA Takumi2014-06-271-8/+8
| | | | llvm-svn: 211841
* Allow different path separator for windows build.Logan Chien2014-06-271-8/+8
| | | | llvm-svn: 211823
* Implement the -fuse-ld= option.Logan Chien2014-06-261-0/+63
This commit implements the -fuse-ld= option, so that the user can specify -fuse-ld=bfd to use ld.bfd. This commit re-applies r194328 with some test case changes. It seems that r194328 was breaking macosx or mingw build because clang can't find ld.bfd or ld.gold in the given sysroot. We should use -B to specify the executable search path instead. Patch originally by David Chisnall. llvm-svn: 211785
OpenPOWER on IntegriCloud