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-emscripten",
"ignore-endian-big",
"ignore-enzyme",
"ignore-freebsd",
"ignore-fuchsia",
"ignore-gdb",

View File

@ -166,6 +166,12 @@ macro_rules! condition {
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"
// 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.