Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make cargo
-Zbuild-std
work with -Cinstrument-coverage
By not trying to inject a profiler runtime when only building an rlib. This logic already exists for the panic runtime. This makes RUSTFLAGS="-Cinstrument-coverage" cargo build -Zbuild-std=std,profiler_builtins work. Note that you probably also need `RUST_COMPILER_RT_FOR_PROFILER=$src/llvm-project/compiler-rt` in your environment.
- Loading branch information