https://bugs.llvm.org/show_bug.cgi?id=39034
Bug ID: 39034
Summary: Flatten names when converting from thin archive to
regular archive
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-ar
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
In a regular archive, names are always stored as just the filename (e.g.
'bar.o'), whereas in thin archives, the path specified is stored (e.g.
'C:\Work\bar.o'). Converting from a thin archive to a regular archive with no
warning is dubious at best (GNU ar does not support it at all), since
forgetting a single 'T' is all that it takes, but assuming that we permit it,
we should probably flatten the paths to be in the regular archive style, so
that operations can be performed on them in the same way as if it had been a
regular archive all along:
C:\Work>touch test1.o
C:\Work>touch dir\test2.o
C:\Work>touch test3.o
C:\Work>llvm-ar rcT test.a .\test1.o
C:\Work>llvm-ar rT test.a TempWork\test2.o
C:\Work>llvm-ar r test.a test3.o # This silently converts it to a thin archive
C:\Work>llvm-ar t test.a
./test1.o
TempWork/test2.o
test3.o
C:\Work>llvm-ar x test.a test1.o test2.o
test1.o was not found
test2.o was not found
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs