[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>
Mon, 15 Jan 2024 07:16:35 +0000 (08:16 +0100)
commitf9106602723dde23dba37d4cc52cdcc84aebb3ae
tree4cdb4e6d05868b5b51a8dfaa49ea2bd3204db147
parentf7fa14e203d84e1ae2deaa539196451c4d28fadd
[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