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:
@@ -451,6 +451,10 @@ python do_configure() {
|
|||||||
rustc = d.expand("${WORKDIR}/rust-snapshot/bin/rustc")
|
rustc = d.expand("${WORKDIR}/rust-snapshot/bin/rustc")
|
||||||
config.set("build", "rustc", e(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")
|
cargo = d.expand("${WORKDIR}/rust-snapshot/bin/cargo")
|
||||||
config.set("build", "cargo", e(cargo))
|
config.set("build", "cargo", e(cargo))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user