This is an archive of the discontinued LLVM Phabricator instance.

[lld-link] implement -thinlto-{prefix,object-suffix}-replace
ClosedPublic

Authored by inglorion on Jul 10 2019, 5:16 PM.

Details

Summary

Adds the following two options to lld-link:

-thinlto-prefix-replace: allows replacing a prefix in paths generated
for ThinLTO. This can be used to ensure index files and native object
files are stored in unique directories, allowing multiple distributed
ThinLTO links to proceed concurrently.

-thinlto-object-suffix-replace: allows replacing a suffix in object
file paths involved in ThinLTO. This allows minimized index files to
be used for the thin link while storing the paths to the full bitcode
files for subsequent steps (code generation and final linking).

Diff Detail

Repository
rL LLVM

Event Timeline

inglorion created this revision.Jul 10 2019, 5:16 PM
ruiu accepted this revision.Jul 10 2019, 10:58 PM

LGTM

This revision is now accepted and ready to land.Jul 10 2019, 10:58 PM

rebased and updated variable naming convention

This revision was automatically updated to reflect the committed changes.