Skip to content

Commit 9b8fc7a

Browse files
committed
difftest: fix use-installed-tools feature
1 parent 63690fb commit 9b8fc7a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.toml

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

5555
# difftest libraries mirrored from difftest workspace
56-
difftest-runner = { path = "tests/difftests/runner" }
56+
difftest-runner = { path = "tests/difftests/runner", default-features = false }
5757

5858
# External dependencies that need to be mentioned more than once.
5959
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)