Skip to content

Commit 96a5064

Browse files
committed
difftest: fix use-installed-tools feature
1 parent 658a6ea commit 96a5064

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ rustc_codegen_spirv = { path = "./crates/rustc_codegen_spirv", version = "=0.9.0
5252
rustc_codegen_spirv-types = { path = "./crates/rustc_codegen_spirv-types", version = "=0.9.0" }
5353

5454
# difftest libraries mirrored from difftest workspace
55-
difftest-runner = { path = "tests/difftests/runner" }
55+
difftest-runner = { path = "tests/difftests/runner", default-features = false }
5656

5757
# External dependencies that need to be mentioned more than once.
5858
tracing = "0.1"

tests/difftests/runner/src/runner.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,10 @@ impl Runner {
634634

635635
pub fn forward_features(cmd: &mut Command) {
636636
cmd.arg("--features");
637+
#[cfg(all(feature = "use-compiled-tools", feature = "use-installed-tools"))]
638+
compile_error!(
639+
"Features `use-compiled-tools` and `use-installed-tools` are mutually exclusive"
640+
);
637641
#[cfg(feature = "use-compiled-tools")]
638642
{
639643
cmd.arg("difftest/use-compiled-tools");

0 commit comments

Comments
 (0)