about summary refs log tree commit diff
path: root/src/librustc_interface
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2020-04-19 20:48:43 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2020-04-22 15:22:18 +1000
commitae322ff651cb43d8242d8375563e7a252885921e (patch)
treeec97e43141a167ef3735c576f7d638dc2ab9436b /src/librustc_interface
parentb9f6dfef0bebd2c2c4d871c4d02f4c5a70844fe9 (diff)
downloadrust-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.rs4
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]