about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-08-28 20:58:49 +0000
committerbors <bors@rust-lang.org>2020-08-28 20:58:49 +0000
commitd006f5734f49625c34d6fc33bf6b9967243abca8 (patch)
tree00a8281562ecd84cb49985b92b6c8eab66b5e539 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parentabb98ca10de10e0a80e2bdbb8f704649ceed556f (diff)
parente4bd5cd94a1623312d2ec4eef79cc4dbe7ce3377 (diff)
downloadrust-d006f5734f49625c34d6fc33bf6b9967243abca8.tar.gz
rust-d006f5734f49625c34d6fc33bf6b9967243abca8.zip
Auto merge of #76035 - tiagolam:master, r=pietroalbini
Build dist-x86_64-musl with --enable-profiler.

Trying to build a Rust project with `-Zprofile` for target
x86_64-unknown-linux-musl using rustc 1.46.0-nightly (346aec9b0
2020-07-11), installed with rustup, results in the following error.
```
        export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"export CARGO_INCREMENTAL=0$ cargo build --target=x86_64-unknown-linux-muslCompiling hello_world v0.1.0 (…)error[E0463]: can't find crate for `profiler_builtins`
        |
         = note: the compiler may have been built without the profiler runtime

        error: aborting due to previous error

        For more information about this error, try `rustc --explain E0463`.error: could not compile `hello_world`.

        To learn more, run the command again with --verbose.
```

`-Zprofile` is required here to enable grcov profiling.

This is similar in nature to issue
https://github.com/rust-lang/rust/issues/57257, which has been fixed in
asimilar way at https://github.com/rust-lang/rust/pull/60476 .

A fix for Android has also landed not long ago:
https://github.com/rust-lang/rust/pull/70054 .

Signed-off-by: Tiago Lam <tiagol@hadean.com>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions