Skip to content

Commit 748e940

Browse files
committed
add config to explicitely test rustc with autodiff/enzyme disabled
1 parent a1eceec commit 748e940

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: src/tools/compiletest/src/command-list.rs

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
125125
"needs-dlltool",
126126
"needs-dynamic-linking",
127127
"needs-enzyme",
128+
"needs-enzyme-disabled",
128129
"needs-force-clang-based-tests",
129130
"needs-git-hash",
130131
"needs-llvm-components",

Diff for: src/tools/compiletest/src/header/needs.rs

+5
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ pub(super) fn handle_needs(
8484
condition: config.has_enzyme,
8585
ignore_reason: "ignored when LLVM Enzyme is disabled",
8686
},
87+
Need {
88+
name: "needs-enzyme-disabled",
89+
condition: !config.has_enzyme,
90+
ignore_reason: "ignored when LLVM Enzyme is enabled",
91+
},
8792
Need {
8893
name: "needs-run-enabled",
8994
condition: config.run_enabled(),

0 commit comments

Comments
 (0)