[PATCH] D144596: Add extra parameter to thinlto-prefix-replace
Ivan Tadeu Ferreira Antunes Filho via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 23 09:51:24 PST 2023
itf added a comment.
In D144596#4146593 <https://reviews.llvm.org/D144596#4146593>, @MaskRay wrote:
> What's the motivation of this change?
This is necessary for Bazel to support thinlto with tree artifacts.
Bazel tree artifacts are generated folders with an unknown number of files, for example, auto generating source files from a script or the result of extracting a .zip file containing source files.
Bazel tree artifacts require that the folders are "write once". Therefore we cannot insert the link objects in the same folder as the result from the thinlto indexing step. Currently the file "--thinlto-index-only=file" requires the link objects to be in the same folder as the summary+import files from the indexing step.
This change allows having a different prefix for the link objects, and therefore keep the folders containing the summary+import files be "write once".
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144596/new/
https://reviews.llvm.org/D144596
More information about the llvm-commits
mailing list