Page MenuHomePhabricator

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

Authored by inglorion on Wed, Jul 10, 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.Wed, Jul 10, 5:16 PM
ruiu accepted this revision.Wed, Jul 10, 10:58 PM

LGTM

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

rebased and updated variable naming convention

This revision was automatically updated to reflect the committed changes.