llvm-project
llvm-project copied to clipboard
llvm-ar errors when printing multiple members with the same name
| Bugzilla Link | 42521 |
| Version | trunk |
| OS | Windows NT |
Extended Description
When using the print operation as below llvm-ar errors:
llvm-ar p archive.a 1.txt 1.txt
The member is printed but an error is also output. This is the case if the archive contains only one member of that name or multiple members.
In comparison gnu-ar will error in the case above if the archive only contains one member of the given name, with multiple members of that name they will be printed in sequential order. i.e the first two members named 1.txt of the archive above will be printed.