[PATCH] Allow using external builds of the compiler-rt profile lib
authorJosh Stone <jistone@redhat.com>
Tue, 25 Jul 2023 20:11:50 +0000 (13:11 -0700)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Thu, 15 Feb 2024 05:52:19 +0000 (06:52 +0100)
commit5e1ea0e75541a7c6c7c268e82ffc264b0a9e7eb7
tree1102a64c564a44a619f12499937b5191a6ed95b8
parentb697e3e9759783bd61d8a0f91e62aa4fb28ec7cf
[PATCH] Allow using external builds of the compiler-rt profile lib

This changes the bootstrap config `target.*.profiler` from a plain bool
to also allow a string, which will be used as a path to the pre-built
profiling runtime for that target. Then `profiler_builtins/build.rs`
reads that in a `LLVM_PROFILER_RT_LIB` environment variable.

Gbp-Pq: Name u-profiler.patch
config.example.toml
library/profiler_builtins/build.rs
src/bootstrap/compile.rs
src/bootstrap/config.rs