File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
4949 "ignore-eabi" ,
5050 "ignore-emscripten" ,
5151 "ignore-endian-big" ,
52+ "ignore-enzyme" ,
5253 "ignore-freebsd" ,
5354 "ignore-fuchsia" ,
5455 "ignore-gdb" ,
Original file line number Diff line number Diff line change @@ -166,6 +166,12 @@ pub(super) fn parse_cfg_name_directive<'a>(
166166 message: "when the target vendor is Apple"
167167 }
168168
169+ condition ! {
170+ name: "enzyme" ,
171+ condition: config. has_enzyme,
172+ message: "when rustc is built with LLVM Enzyme"
173+ }
174+
169175 // Technically the locally built compiler uses the "dev" channel rather than the "nightly"
170176 // channel, even though most people don't know or won't care about it. To avoid confusion, we
171177 // treat the "dev" channel as the "nightly" channel when processing the directive.
You can’t perform that action at this time.
0 commit comments