[PATCH] D85540: [llvm-libtool-darwin] Add support for -l and -L

Sameer Arora via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 12:42:25 PDT 2020


sameerarora101 added inline comments.


================
Comment at: llvm/test/tools/llvm-libtool-darwin/L-and-l.test:7
+# RUN: rm -rf %t/dirname && mkdir -p %t/dirname
+# RUN: llvm-ar cr %t/dirname/archive.o %t-input1.o %t-input2.o
+
----------------
smeenai wrote:
> sameerarora101 wrote:
> > smeenai wrote:
> > > I'd prefer for a file ending in `.o` to actually be an object file and not an archive :)
> > I just wanted to check that a library ending in `.o` is not prepended/appended with some additional string lol. How about the name `archive-object.o`?
> I think the intent is, even though the option is `-l` (with the l presumably standing for library), you can still use it to specify input object files (so that you don't have to specify their full path). What I meant was to just have an object file and use `-l` to add that, instead of creating an archive and giving it a `.o` extension.
Ah I see. Ok, I'll update it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85540



More information about the llvm-commits mailing list