llvm-project/llvm
Roger Kim 4993eff3e2 [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
2022-01-11 14:47:51 -08:00
..
benchmarks
bindings Fix forward for "signed version of createExpression" 2021-12-27 13:51:59 +01:00
cmake [cmake] Enable users to specify archive creation commands 2022-01-10 18:53:40 +00:00
docs [MCA] Switching from conservatively guessing which instructions are 2022-01-11 13:50:14 -08:00
examples [llvm] Use `GNUInstallDirs` to support custom installation dirs 2022-01-08 00:47:31 +00:00
include Add 'eager-checks' as a module parameter to MSAN. 2022-01-11 14:30:49 -08:00
lib Add 'eager-checks' as a module parameter to MSAN. 2022-01-11 14:30:49 -08:00
projects
resources
runtimes [runtimes] Remove LLVM_ENABLE_LLD 2021-12-17 15:03:57 -08:00
test [llvm-libtool-darwin] Print a warning if object file names are repeated 2022-01-11 14:47:51 -08:00
tools [llvm-libtool-darwin] Print a warning if object file names are repeated 2022-01-11 14:47:51 -08:00
unittests Revert "[Clang][AArch64][ARM] PMUv3.4 Option Added" 2022-01-11 12:33:53 +00:00
utils [gn build] (manually) port f77d115cc1 more 2022-01-11 14:49:14 -05:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [llvm] Use `GNUInstallDirs` to support custom installation dirs 2022-01-08 00:47:31 +00:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.