[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>
Wed, 21 Feb 2024 00:14:38 +0000 (00:14 +0000)
commit86bc4f256f56b1db9b3dc2987c71e8467f7ee313
tree4467a7610d0af0d1caf5a306b262ec0c52a998d9
parentdac8894f41752f4a955ea4efb3a086ad3e9a559a
[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