diff options
author | Roger Kim <rgr@fb.com> | 2022-01-11 14:38:25 -0800 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2022-01-11 14:47:51 -0800 |
commit | 4993eff3e253a1c04e1a1a2fa5d68f6b33423419 (patch) | |
tree | 6bca290996a2937cebc1d2ecb3f50b0988a3767a /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | e9b5b815565b848d07fb7bfa302394af197f7f51 (diff) | |
download | llvm-4993eff3e253a1c04e1a1a2fa5d68f6b33423419.zip llvm-4993eff3e253a1c04e1a1a2fa5d68f6b33423419.tar.gz llvm-4993eff3e253a1c04e1a1a2fa5d68f6b33423419.tar.bz2 |
[llvm-libtool-darwin] Print a warning if object file names are repeated
Print a warning if `llvm-libtool-darwin` if any of the object
files provided by the user have the same file name.
The tool will now print a warning if there is a name collision across:
* Two object files
* An object file and an object file from within a static library
* Two object files from different static libraries
Here is an example of the error:
```
$ llvm-libtool-darwin -static -o archive.a out.o out.o
error: file 'out.o' was specified multiple times.
in: out.o
in: out.o
$ llvm-libtool-darwin -static -o archive.a out.o
$ llvm-libtool-darwin -static -o combined.a archive.a out.o
error: file 'out.o' was specified multiple times.
in: archive.a
in: out.o
```
This change mimics apple's cctools libtool's behavior which always shows a warning in such cases.
Reviewed By: smeenai
Differential Revision: https://reviews.llvm.org/D113130
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions