diff options
| author | Ralf Jung <post@ralfj.de> | 2020-05-30 23:08:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-30 23:08:51 +0200 |
| commit | ffe329250b606e219182ceb5975ff1dcbc229b98 (patch) | |
| tree | bd12528db4b72a6ed1594df6f1fc9358c7ce0999 /src/librustc_interface | |
| parent | 320de71cdd016201d9ec6b1a214befccb36e0de5 (diff) | |
| parent | 0c1ef853bb6ff87c2179b5e41b7e044b6c5b79cb (diff) | |
| download | rust-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.rs | 1 |
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); |
