llvm-project/llvm/test/tools/llvm-ar
Jordan Rupprecht bf990ab5aa [llvm-ar][libObject] Fix relative paths when nesting thin archives.
Summary:
When adding one thin archive to another, we currently chop off the relative path to the flattened members. For instance, when adding `foo/child.a` (which contains `x.txt`) to `parent.a`, when flattening it we should add it as `foo/x.txt` (which exists) instead of `x.txt` (which does not exist).

As a note, this also undoes the `IsNew` parameter of handling relative paths in r288280. The unit test there still passes.

This was reported as part of testing the kernel build with llvm-ar: https://patchwork.kernel.org/patch/10767545/ (see the second point).

Reviewers: mstorsjo, pcc, ruiu, davide, david2050

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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

llvm-svn: 353424
2019-02-07 16:41:06 +00:00
..
Inputs [llvm-ar] Flatten thin archives. 2019-01-14 21:11:46 +00:00
absolute-paths.test
add-library.test [llvm-ar] Access ADDLIB in llvm-ar via command line 2018-10-26 13:34:38 +00:00
case-detection.test [llvm-ar] Temporarily make the tool case detection test Windows-only to fix the build (introduced in r329658) 2018-04-10 10:26:23 +00:00
coff-weak.yaml [COFF] Adjust how we flag weak externals 2018-07-20 20:48:29 +00:00
default-add.test [llvm-ar] Support multiple dashed options 2018-03-28 17:21:14 +00:00
default-coff.test
default-elf.test
default-macho.test
empty-uid-gid.test [llvm-ar] Use POSIX-specified timestamps for 'tv'. 2018-10-05 23:25:39 +00:00
flatten-thin-archive-directories.test [llvm-ar][libObject] Fix relative paths when nesting thin archives. 2019-02-07 16:41:06 +00:00
flatten-thin-archive-recursive.test [llvm-ar] Resubmit recursive thin archive test with fix for full path names and better error messages 2019-01-15 21:52:31 +00:00
flatten-thin-archive.test [llvm-ar][libObject] Fix relative paths when nesting thin archives. 2019-02-07 16:41:06 +00:00
invalid-command-line.test [llvm-ar] Fix help text test. NFC. 2018-08-02 12:27:01 +00:00
mri-delete.test [llvm-ar] Support * as comment char in MRI scripts 2018-09-06 18:10:45 +00:00
override.test
print-thin-archive-path.test [llvm-ar] Remove leading slash when printing thin archive members 2019-02-06 21:50:45 +00:00
regex-cmd.test On Windows expansion of regex file name patterns is the responsibility of each 2018-03-05 18:54:56 +00:00