[PATCH] D56508: [llvm-ar] Flatten thin archives.
Bill Wendling via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 13 14:12:00 PST 2019
void added a comment.
Herald added a project: LLVM.
This fails if the archives are nested. E.g.:
$ mkdir -p foo/bar
$ cat > foo/bar/a.c <<EOF
int bar() { return 42; }
EOF
$ rm -f built-in.o foo/built-in.o foo/bar/built-in.o ; llvm-ar rcSTD foo/bar/built-in.o foo/bar/a.o ; llvm-ar rcSTD foo/built-in.o foo/bar/built-in.o ; llvm-ar rcSTD built-in.o foo/built-in.o
./llvm.opt.install/bin/llvm-ar: error: 'a.o': No such file or directory.
What's happening is that it's trying to find `a.o` in `foo/` when it's really in `foo/bar/`.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56508/new/
https://reviews.llvm.org/D56508
More information about the llvm-commits
mailing list