[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)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 13 Jun 2024 11:01:11 +0000 (11:01 +0000)
commitc5bc27bd029199f540dde8d024138c2003b5eb75
tree6f30e107ecfeb7c9e8b6f4ef9fe0878fa6b0f71e
parentd14fc61e09a3efaf3e08ea688035680c393a9acc
[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