Skip to content

Commit 7323830

Browse files
author
Orion Gonzalez
committed
add an option for a custom differ
1 parent bca5fde commit 7323830

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/tools/compiletest/src/common.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@ pub struct Config {
387387
/// True if the profiler runtime is enabled for this target.
388388
/// Used by the "needs-profiler-runtime" directive in test files.
389389
pub profiler_runtime: bool,
390+
391+
pub diff_command: Option<String>,
390392
}
391393

392394
impl Config {

src/tools/compiletest/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ pub fn parse_config(args: Vec<String>) -> Config {
364364
git_merge_commit_email: matches.opt_str("git-merge-commit-email").unwrap(),
365365

366366
profiler_runtime: matches.opt_present("profiler-runtime"),
367+
diff_command: env::var("COMPILETEST_DIFF_TOOL").ok(),
367368
}
368369
}
369370

0 commit comments

Comments
 (0)