Commit bc993f4
committed
[llvm-lib] Don't rewrite paths for non-thin archives
This matches what MS lib.exe does (and llvm-ar too); MS lib.exe
doesn't produce relative paths when producing regular static
archives. (lib.exe doesn't support producing thin archives; that's
an LLVM extension; see the thin-relative.test testcase.)
It is unclear why 451c2ef chose
to extend this behaviour to non-thin archives in the case of llvm-lib
(and even mentioning it in a comment), while not doing that for
llvm-ar; the code review at https://reviews.llvm.org/D57842 or the
linked bug report at https://crbug.com/41440160 doesn't touch upon
that.
Therefore, assume that this only was done out of convenience, and
change llvm-lib to not adjust the paths for non-thin archives.
Normally, the actual member names doesn't matter for non-thin
archives; however for short import libraries, where each member
is named e.g. "foo.dll", the names do matter. If using llvm-lib
to merge two import libraries (as a non-thin library), preserve
the original names rather than making the member names relative.1 parent 21704a6 commit bc993f4
File tree
2 files changed
+47
-11
lines changed- llvm
- lib/ToolDrivers/llvm-lib
- test/tools/llvm-lib
2 files changed
+47
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
515 | 516 | | |
516 | 517 | | |
517 | 518 | | |
518 | 519 | | |
519 | 520 | | |
520 | 521 | | |
521 | | - | |
522 | | - | |
523 | 522 | | |
524 | 523 | | |
525 | 524 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments