From cb5a599f0253eb51997220dca243ba391ae407c8 Mon Sep 17 00:00:00 2001 From: Johan Anderholm Date: Tue, 16 Mar 2021 14:15:32 +0100 Subject: [PATCH] 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. --- recipes-devtools/rust/rust.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-devtools/rust/rust.inc b/recipes-devtools/rust/rust.inc index 72313e4..78ae18f 100644 --- a/recipes-devtools/rust/rust.inc +++ b/recipes-devtools/rust/rust.inc @@ -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))