add config to explicitely test rustc with autodiff/enzyme disabled

This commit is contained in:
Manuel Drehwald 2024-10-10 11:38:28 +02:00
parent a1eceec00b
commit b12dc20910
2 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,7 @@
"ignore-eabi", "ignore-eabi",
"ignore-emscripten", "ignore-emscripten",
"ignore-endian-big", "ignore-endian-big",
"ignore-enzyme",
"ignore-freebsd", "ignore-freebsd",
"ignore-fuchsia", "ignore-fuchsia",
"ignore-gdb", "ignore-gdb",

View File

@ -166,6 +166,12 @@ macro_rules! condition {
message: "when the target vendor is Apple" message: "when the target vendor is Apple"
} }
condition! {
name: "enzyme",
condition: config.has_enzyme,
message: "when rustc is built with LLVM Enzyme"
}
// Technically the locally built compiler uses the "dev" channel rather than the "nightly" // Technically the locally built compiler uses the "dev" channel rather than the "nightly"
// channel, even though most people don't know or won't care about it. To avoid confusion, we // channel, even though most people don't know or won't care about it. To avoid confusion, we
// treat the "dev" channel as the "nightly" channel when processing the directive. // treat the "dev" channel as the "nightly" channel when processing the directive.