[PATCH] D83002: [llvm-libtool-darwin] Add support for -static option

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 20:04:43 PDT 2020


smeenai added inline comments.


================
Comment at: llvm/test/tools/llvm-libtool-darwin/create-static-lib.test:32
+# FORMAT-NEXT: [[PREFIX]]-input2.o
+# FORMAT_NOT:  {{.}}
+
----------------
sameerarora101 wrote:
> smeenai wrote:
> > You have an underscore instead of a dash :)
> > 
> > Is the purpose to ensure that there's no other members? I assume a -EMPTY would work for that. We should also check for the "Archive : " header, to ensure there's no members before the table of contents member.
> Thanks for catching the underscore.
> 
> I added a check for "Archive : " header now. However, using `FORMAT-EMPTY` would just check that the next line (after 2nd member) has nothing on it. What I thought we wanted to check was that there is nothing at all after the second member. For eg,
> 
> ```
> Archive : ...
> ... __.SYMDEF
> ...<prefix>-input1.o
> ...<prefix>-input2.o
> 
> something here
> ```
> would pass with `FORMAT-EMPTY` just below the check for second member, right? But we want it to fail.
You're right, that makes sense.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83002





More information about the llvm-commits mailing list