llvm.org GIT mirror llvm / eb729e0
Use only the filename when deciding if a file is a duplicate. Matches gnu ar behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184448 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 7 years ago
2 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
33 ;RUN: rm -f %T/test.a
44 ;RUN: touch %T/a-very-long-file-name
55 ;RUN: llvm-ar r %T/test.a %s %T/a-very-long-file-name
6 ;RUN: llvm-ar r %T/test.a %T/a-very-long-file-name
67 ;RUN: llvm-ar t %T/test.a | FileCheck -check-prefix=MEMBERS %s
78 ;MEMBERS-NOT: /
89 ;MEMBERS: a-very-long-file-name
910 ;MEMBERS: directory.ll
11 ;MEMBERS-NOT: a-very-long-file-name
562562 std::set::iterator found = remaining.end();
563563 for (std::set::iterator RI = remaining.begin(),
564564 RE = remaining.end(); RI != RE; ++RI ) {
565 std::string compare(*RI);
565 std::string compare(sys::path::filename(*RI));
566566 if (TruncateNames && compare.length() > 15) {
567567 const char* nm = compare.c_str();
568568 unsigned len = compare.length();