diff options
| author | bors <bors@rust-lang.org> | 2016-02-12 05:53:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-02-12 05:53:18 +0000 |
| commit | 77f9231818514c4ded23e6aa1ae431a8ba4668bf (patch) | |
| tree | dc9f1a3f52e60a85d57c56d385afbbba0a9898b1 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 4b2c7030fd3c8773fc9d567ae240e896d5616be7 (diff) | |
| parent | 274f27a476d48a006f8e7142d4a239f63ea2d403 (diff) | |
| download | rust-77f9231818514c4ded23e6aa1ae431a8ba4668bf.tar.gz rust-77f9231818514c4ded23e6aa1ae431a8ba4668bf.zip | |
Auto merge of #31368 - JohanLorenzo:dont-strip-if-test-build, r=alexcrichton
Tools which rely on DWARF for generating code coverage report, don't generate accurate numbers on test builds. For instance, [this sample main](https://github.com/JohanLorenzo/rust-testing-example/blob/757bdbf3887f43db9771c20cb72dfc32aa8f4321/src/main.rs) returns [100% coverage](https://coveralls.io/builds/4940156/source?filename=main.rs) when [kcov](https://github.com/SimonKagstrom/kcov/) runs. With @pnkfelix 's great help, we could narrow down the issue: The linker strips unused function during phase 6. Here's a patch which stops stripping when someone calls `rustc --test $ARGS`. @pnkfelix wasn't sure if we should add a new flag, or just use --test. What do you think @alexcrichton ? Also, I'm not too sure: where is the best place to add a test for this addition? Thanks for the help!
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
