Skip to content

Commit

Permalink
add an option for a custom differ
Browse files Browse the repository at this point in the history
  • Loading branch information
Orion Gonzalez committed Oct 22, 2024
1 parent bca5fde commit 7323830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/compiletest/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ pub struct Config {
/// True if the profiler runtime is enabled for this target.
/// Used by the "needs-profiler-runtime" directive in test files.
pub profiler_runtime: bool,

pub diff_command: Option<String>,
}

impl Config {
Expand Down
1 change: 1 addition & 0 deletions src/tools/compiletest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ pub fn parse_config(args: Vec<String>) -> Config {
git_merge_commit_email: matches.opt_str("git-merge-commit-email").unwrap(),

profiler_runtime: matches.opt_present("profiler-runtime"),
diff_command: env::var("COMPILETEST_DIFF_TOOL").ok(),
}
}

Expand Down

0 comments on commit 7323830

Please sign in to comment.