[PATCH] D119049: [LLD] Allow usage of LLD as a library

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 9 15:43:14 PST 2023


MaskRay added inline comments.


================
Comment at: lld/ELF/Options.td:739
+// Flag that selects the driver, it should be ignored.
+def flavor : Separate<["-"], "flavor">;
----------------
MaskRay wrote:
> We should avoid ignoring `-flavor` in all drivers. It's probably not difficult to strip `-flavor` from the driver dispatcher.
Note: we can assert that `-flavor` is a very first option, i.e. `lld -xxx -yyy -flavor gnu` isn't allowed.
This may simplify striping the `-flavor` option.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119049



More information about the llvm-commits mailing list