[PATCH] D84209: [llvm-libtool-darwin] Add support for -D and -U option

Sameer Arora via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 29 07:00:28 PDT 2020


sameerarora101 marked an inline comment as done.
sameerarora101 added inline comments.


================
Comment at: llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp:25
 
+static bool Deterministic; // Updated by 'D' and 'U' modifiers
+
----------------
jhenderson wrote:
> sameerarora101 wrote:
> > sameerarora101 wrote:
> > > jhenderson wrote:
> > > > I'm not particularly a fan of adding a global variable for this. Are there going to be other configuration options? If so, I'd recommend creating a Config class/struct, that can be created and passed around instead.
> > > > 
> > > > (Also, missing trailing full stop in comment)
> > > For now, there aren't any other configuration options that vary depending on the flags passed in on the command line. However, I can still wrap this in a Config class/struct just in case one is needed in the future? What do you think?
> > By "For now" I am referring to the period until we add full support for creating **static** libraries. ( I am not completely sure yet about the dynamic case)
> I'm talking about in the future. I'm guessing there will be other configuration options added in due course, but you have a better idea of this than me. If there are, I'd recommend my suggested approach.
Added the config, thanks.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84209



More information about the llvm-commits mailing list