summaryrefslogtreecommitdiffstats
path: root/llvm/test/LibDriver
Commit message (Collapse)AuthorAgeFilesLines
* [test] Move llvm-lib tests into tools/llvm-lib. NFC.Martin Storsjo2017-11-0212-78/+0
| | | | | | | | | | | | Similarly to SVN r317189 for llvm-dlltool, these are probably easier to find in a tools subdirectory with a name identical to the tool, than in a toplevel directory with a different name. This matches the move of LibDriver itself in SVN r302995. Differential Revision: https://reviews.llvm.org/D39531 llvm-svn: 317262
* [llvm] Get rid of "%T" expansionsKuba Mracek2017-08-152-18/+19
| | | | | | | | | | The %T lit expansion expands to a common directory shared between all the tests in the same directory, which is unexpected and unintuitive, and more importantly, it's been a source of subtle race conditions and flaky tests. In https://reviews.llvm.org/D35396, it was agreed that it would be best to simply ban %T and only keep %t, which is unique to each test. When a test needs a temporary directory, it can just create one using mkdir %t. This patch removes %T in llvm. Differential Revision: https://reviews.llvm.org/D36495 llvm-svn: 310953
* [llvm-ar] Make llvm-lib behave more like the MSVC archiverReid Kleckner2017-06-121-0/+24
| | | | | | | | | | | | | | | | | | | | | | Summary: Use the filepath used to open the archive member as the archive member name instead of the file basename. This path might be absolute or relative. This is important because the archive member name will show up in the PDB, and we want our PDBs to look as much like MSVC's as possible. This also helps avoid an issue in our PDB module descriptor writing code, which assumes that all module names are unique. Relative paths still aren't guaranteed to be unique, but they're much better than basenames, which definitely aren't unique. Reviewers: ruiu, zturner Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D33575 llvm-svn: 305223
* LibDriver: Allow resource files to be archive members.Peter Collingbourne2016-12-153-1/+4
| | | | | | | | It seems pointless to add a resource to an archive because it won't have any symbols to link against (and link.exe doesn't have an equivalent of --whole-archive), but lib.exe allows it for some reason. llvm-svn: 289859
* LibDriver: Reject inputs that are not COFF objects or bitcode files.Peter Collingbourne2016-12-143-1/+3
| | | | | | | | Fixes PR31372. Differential Revision: https://reviews.llvm.org/D27776 llvm-svn: 289726
* LibDriver: Silently do nothing when provided no inputs.Peter Collingbourne2016-04-131-0/+2
| | | | | | | | | This behavior is strange, but it matches lib.exe. Based on a patch by Nico Weber. Fixes PR27335. llvm-svn: 266236
* Add support for producing thin archives in llvm-lib.Rafael Espindola2015-07-171-0/+9
| | | | | | I will send an entry in docs/CommandGuide for review today. llvm-svn: 242533
* LibDriver: Fix output path inference.Peter Collingbourne2015-07-081-0/+15
| | | | | | | | | The inferred output file name is based on the first input file, not the first one with extension .obj. The output file was also being written to the wrong directory; it needs to be written to whichever directory on the libpath it was found in. This change fixes both issues. llvm-svn: 241710
* Use correct escaping for semicolon on Windows.Peter Collingbourne2015-06-201-1/+1
| | | | llvm-svn: 240207
* LibDriver tests require x86 target.Peter Collingbourne2015-06-201-0/+3
| | | | llvm-svn: 240205
* LibDriver: implement /libpath and $LIB; ignore /ignore and /machine.Peter Collingbourne2015-06-203-0/+19
llvm-svn: 240203
OpenPOWER on IntegriCloud