rust.inc: Build the profiler runtime

Needed when compiling with options such as "-C profile-generate" or
"-Z instrument-coverage", e.g. when generating coverage reports or doing
profile guided optimization.
This commit is contained in:
Johan Anderholm
2021-03-16 14:15:32 +01:00
parent 9a035fe272
commit cb5a599f02
+4
View File
@@ -451,6 +451,10 @@ python do_configure() {
rustc = d.expand("${WORKDIR}/rust-snapshot/bin/rustc")
config.set("build", "rustc", e(rustc))
# Support for the profiler runtime to generate e.g. coverage report,
# PGO etc.
config.set("build", "profiler", e(True))
cargo = d.expand("${WORKDIR}/rust-snapshot/bin/cargo")
config.set("build", "cargo", e(cargo))