Skip to content

Commit 1a480f0

Browse files
committed
difftest: fix use-installed-tools feature
1 parent 16c5500 commit 1a480f0

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
@@ -54,7 +54,7 @@ rustc_codegen_spirv-types = { path = "./crates/rustc_codegen_spirv-types", versi
5454
rustc_codegen_spirv-target-specs = { path = "crates/rustc_codegen_spirv-target-specs", version = "=0.9.0" }
5555

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

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