diff options
| author | Manuel Drehwald <git@manuel.drehwald.info> | 2024-10-10 11:38:28 +0200 |
|---|---|---|
| committer | Manuel Drehwald <git@manuel.drehwald.info> | 2024-10-10 11:38:28 +0200 |
| commit | b12dc2091012d1e8074ccea0ffe6ac16de1ba802 (patch) | |
| tree | a6b4f1074cabea7c332d81a5014f45de6dde66be /src/tools/compiletest | |
| parent | a1eceec00b2684f947481696ae2322e20d59db60 (diff) | |
| download | rust-b12dc2091012d1e8074ccea0ffe6ac16de1ba802.tar.gz rust-b12dc2091012d1e8074ccea0ffe6ac16de1ba802.zip | |
add config to explicitely test rustc with autodiff/enzyme disabled
Diffstat (limited to 'src/tools/compiletest')
| -rw-r--r-- | src/tools/compiletest/src/command-list.rs | 1 | ||||
| -rw-r--r-- | src/tools/compiletest/src/header/cfg.rs | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/command-list.rs b/src/tools/compiletest/src/command-list.rs index 53db55d0c10..ab57320b4d9 100644 --- a/src/tools/compiletest/src/command-list.rs +++ b/src/tools/compiletest/src/command-list.rs @@ -49,6 +49,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[ "ignore-eabi", "ignore-emscripten", "ignore-endian-big", + "ignore-enzyme", "ignore-freebsd", "ignore-fuchsia", "ignore-gdb", diff --git a/src/tools/compiletest/src/header/cfg.rs b/src/tools/compiletest/src/header/cfg.rs index 6e351aa27b9..b9314f0abbb 100644 --- a/src/tools/compiletest/src/header/cfg.rs +++ b/src/tools/compiletest/src/header/cfg.rs @@ -166,6 +166,12 @@ pub(super) fn parse_cfg_name_directive<'a>( 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. |
