diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-04-19 20:48:43 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-04-22 15:22:18 +1000 |
| commit | ae322ff651cb43d8242d8375563e7a252885921e (patch) | |
| tree | ec97e43141a167ef3735c576f7d638dc2ab9436b /src/librustc_interface | |
| parent | b9f6dfef0bebd2c2c4d871c4d02f4c5a70844fe9 (diff) | |
| download | rust-ae322ff651cb43d8242d8375563e7a252885921e.tar.gz rust-ae322ff651cb43d8242d8375563e7a252885921e.zip | |
Add a new option `-Cbitcode-in-rlib`.
It defaults to true, but Cargo will set this to false whenever it can to reduce compile times.
Diffstat (limited to 'src/librustc_interface')
| -rw-r--r-- | src/librustc_interface/tests.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc_interface/tests.rs b/src/librustc_interface/tests.rs index 13c0c8f46b9..02fad11d9b8 100644 --- a/src/librustc_interface/tests.rs +++ b/src/librustc_interface/tests.rs @@ -505,6 +505,10 @@ fn test_codegen_options_tracking_hash() { opts = reference.clone(); opts.cg.linker_plugin_lto = LinkerPluginLto::LinkerPluginAuto; assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash()); + + opts = reference.clone(); + opts.cg.bitcode_in_rlib = false; + assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash()); } #[test] |
