Page MenuHomePhabricator

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

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



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


Event Timeline

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


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.