HomePhabricator

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

Description

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

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).

Reviewers: ruiu, tejohnson, pcc, rnk

Subscribers: mehdi_amini, steven_wu, dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64542

Details

Committed
inglorionJul 11 2019, 11:48 AM
Differential Revision
D64542: [lld-link] implement -thinlto-{prefix,object-suffix}-replace
Parents
rL365806: [TSan] Move DECLARE_REAL macro outside of namespace
Branches
Unknown
Tags
Unknown