Skip to content

Commit 5610223

Browse files
author
Orion Gonzalez
committed
add an option for a custom differ
1 parent 44722bd commit 5610223

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/tools/compiletest/src/common.rs

+2
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ pub struct Config {
395395
/// True if the profiler runtime is enabled for this target.
396396
/// Used by the "needs-profiler-support" header in test files.
397397
pub profiler_support: bool,
398+
399+
pub diff_command: Option<String>,
398400
}
399401

400402
impl Config {

src/tools/compiletest/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ pub fn parse_config(args: Vec<String>) -> Config {
360360
git_merge_commit_email: matches.opt_str("git-merge-commit-email").unwrap(),
361361

362362
profiler_support: matches.opt_present("profiler-support"),
363+
diff_command: env::var("COMPILETEST_DIFF_TOOL").ok(),
363364
}
364365
}
365366

0 commit comments

Comments
 (0)