This is an archive of the discontinued LLVM Phabricator instance.

[LLD/MinGW]: Expose --thinlto-cache-dir
ClosedPublic

Authored by thieta on May 22 2020, 6:30 AM.

Details

Summary

This came up in this comment here: https://reviews.llvm.org/D80425#inline-737983

and this seems like the more proper fix for sure.

Diff Detail

Event Timeline

thieta created this revision.May 22 2020, 6:30 AM

Looks great in general, a couple nitpicks

lld/MinGW/Driver.cpp
354

This option is the kind where you only have one (that's how the option is handled in COFF/Driver.cpp), so it's probably better to go with getLastArg() instead - you could place it next to e.g. OPT_reproduce.

lld/MinGW/Options.td
86

Not sure if this really needs a section of its own - I'd put it below in LLD specific options.

lld/test/MinGW/driver.test
247

Missing trailing newline

MaskRay added inline comments.
lld/MinGW/Options.td
86

This can be EqLong. In ELF, I did not know EqLong and added EEq.

thieta updated this revision to Diff 265854.May 23 2020, 6:10 AM
thieta marked 4 inline comments as done.
mstorsjo accepted this revision.May 23 2020, 12:43 PM

LGTM, thanks!

lld/MinGW/Options.td
96

Another nitpick: I try to keep these sorted alphabetically, so you could move it up above Xlink before committing.

This revision is now accepted and ready to land.May 23 2020, 12:43 PM

Could you commit this for me Martin? I don't have access yet.

Could you commit this for me Martin? I don't have access yet.

Sure, can do. What's your preferred form of git author line for this?

"Tobias Hieta <tobias@hieta.se>" thanks!

This revision was automatically updated to reflect the committed changes.