projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5011bd
)
Fix name matching to work on windows.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 28 Aug 2013 21:00:03 +0000
(21:00 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 28 Aug 2013 21:00:03 +0000
(21:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189517
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-ar/llvm-ar.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-ar/llvm-ar.cpp
b/tools/llvm-ar/llvm-ar.cpp
index f47b0a6242aeb00f8356eeb407344bb768712e60..e56e49ad203106551e225f116ff1a0e750aeeaee 100644
(file)
--- a/
tools/llvm-ar/llvm-ar.cpp
+++ b/
tools/llvm-ar/llvm-ar.cpp
@@
-876,9
+876,10
@@
int main(int argc, char **argv) {
" This program archives bitcode files into single libraries\n"
);
- if (ToolName.endswith("ar"))
+ StringRef Stem = sys::path::stem(ToolName);
+ if (Stem.endswith("ar"))
return ar_main(argv);
- if (
ToolName
.endswith("ranlib"))
+ if (
Stem
.endswith("ranlib"))
return ranlib_main();
fail("Not ranlib or ar!");
}