about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-19 01:04:53 +0200
committerGitHub <noreply@github.com>2020-04-19 01:04:53 +0200
commitcd748abc56108dd6a5cc9f58562a49832742464e (patch)
treee3efba59b0487853294ed16ea60e54254733b3d1 /src/test/rustdoc-ui/coverage/json.rs
parent404e06785bfdf3dfeffb8d488c0825301fc62979 (diff)
parent9f23b2d36bf31b89a107b83a37665af08f6c0fb3 (diff)
downloadrust-cd748abc56108dd6a5cc9f58562a49832742464e.tar.gz
rust-cd748abc56108dd6a5cc9f58562a49832742464e.zip
Rollup merge of #71283 - Amanieu:zprofile, r=davidtwco
Minor improvements to -Zprofile

- `-Zprofile` is broken with codegen units because GCOV assumes that each source file corresponds to one object file. This PR makes `-Zprofile` automatically set codegen units to 1 and gives an error if `-Ccodegen-units=X` is specified on the command line (with `X != 1`).
- The `profiler_builtins` crate is not suitable for `no_std` applications since it contains C code that depends on libc. In such cases a custom implementation of the LLVM gcov API (`llvm_gcov_init`, `llvm_gcda_*`) is needed. This PR adds `-Zno-profiler-runtime` flag which inhibits automatic injection of the `profiler_builtins` crate.

cc @whitequark who implemented the original `-Zprofile` support
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions