[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)
committerRaspbian forward porter <root@raspbian.org>
Thu, 8 Feb 2024 02:10:29 +0000 (02:10 +0000)
commit4b9f3c1d414360555c4d0633fb4158ab662ef715
tree1ce8c69cdcf17df43ce409af1366038b2dd353b3
parent4a463dacb36b7b7776ceb1fb0831e9e5a1807a2b
[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