rust/src/librustc_trans
bors 77f9231818 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](757bdbf388/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!
2016-02-12 05:53:18 +00:00
..
back Add -C link-dead-code option r=alexcrichton 2016-02-11 11:14:32 +01:00
save [breaking-change] don't glob export ast::PathListItem_ variants 2016-02-11 12:34:48 +01:00
trans Auto merge of #30830 - arcnmx:static-extern, r=alexcrichton 2016-02-12 02:16:13 +00:00
Cargo.toml bootstrap: Add a bunch of Cargo.toml files 2016-02-11 11:12:32 -08:00
diagnostics.rs Check unchecked_div|rem's specialisation 2015-10-31 12:22:15 -07:00
lib.rs Remove old #[allow(trivial_casts)] annotations 2016-02-08 09:35:09 -08:00
README.txt Make librustc's markdown README.txt claim to be markdown. 2015-03-20 13:29:13 +01:00

See the README.md in ../librustc.