about summary refs log tree commit diff
path: root/src/librustc_interface
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-05-30 23:08:51 +0200
committerGitHub <noreply@github.com>2020-05-30 23:08:51 +0200
commitffe329250b606e219182ceb5975ff1dcbc229b98 (patch)
treebd12528db4b72a6ed1594df6f1fc9358c7ce0999 /src/librustc_interface
parent320de71cdd016201d9ec6b1a214befccb36e0de5 (diff)
parent0c1ef853bb6ff87c2179b5e41b7e044b6c5b79cb (diff)
downloadrust-ffe329250b606e219182ceb5975ff1dcbc229b98.tar.gz
rust-ffe329250b606e219182ceb5975ff1dcbc229b98.zip
Rollup merge of #72666 - ivanloz:profile_emit_flag, r=matthewjasper
Add -Z profile-emit=<path> for Gcov gcda output.

Adds a -Z flag to control the file path that the Gcov gcda output is
written to during runtime. This flag expects a path and filename, e.g.
-Z profile-emit=gcov/out/lib.gcda.

This works similar to GCC/Clang's -fprofile-dir flag which allows
control over the output path for gcda coverage files.
Diffstat (limited to 'src/librustc_interface')
-rw-r--r--src/librustc_interface/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_interface/tests.rs b/src/librustc_interface/tests.rs
index d573e11fc4b..91a4bc2b868 100644
--- a/src/librustc_interface/tests.rs
+++ b/src/librustc_interface/tests.rs
@@ -557,6 +557,7 @@ fn test_debugging_options_tracking_hash() {
     tracked!(plt, Some(true));
     tracked!(print_fuel, Some("abc".to_string()));
     tracked!(profile, true);
+    tracked!(profile_emit, Some(PathBuf::from("abc")));
     tracked!(relro_level, Some(RelroLevel::Full));
     tracked!(report_delayed_bugs, true);
     tracked!(run_dsymutil, false);