[PATCH] D113130: [llvm-libtool-darwin] Throw an error if object file names are repeated

Roger Kim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 7 13:39:40 PST 2021


Roger added inline comments.


================
Comment at: llvm/test/tools/llvm-libtool-darwin/create-static-lib.test:52
 
-## Duplicate a binary:
-## cctools' libtool raises a warning in this case.
-## The warning is not yet implemented for llvm-libtool-darwin.
-# RUN: llvm-libtool-darwin -static -o %t.lib %t-input1.o %t-input2.o %t-input1.o 2>&1 | \
-# RUN:   FileCheck %s --allow-empty --implicit-check-not={{.}}
-# RUN: llvm-ar t %t.lib | \
-# RUN:   FileCheck %s --check-prefix=DUPLICATE-NAMES --implicit-check-not={{.}} -DPREFIX=%basename_t.tmp
-# RUN: llvm-nm --print-armap %t.lib | \
-# RUN:   FileCheck %s --check-prefix=DUPLICATE-SYMBOLS -DPREFIX=%basename_t.tmp --match-full-lines
+## Duplicate a binary: This should raise an error.
+# RUN: not llvm-libtool-darwin -static -o %t.lib %t-input1.o %t-input2.o %t-input1.o 2>&1 | \
----------------
jhenderson wrote:
> 
I am just removing that line since I'm changing this behavior to print an error.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113130/new/

https://reviews.llvm.org/D113130



More information about the llvm-commits mailing list