File tree 2 files changed +7
-0
lines changed
src/tools/compiletest/src
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] = &[
49
49
"ignore-eabi" ,
50
50
"ignore-emscripten" ,
51
51
"ignore-endian-big" ,
52
+ "ignore-enzyme" ,
52
53
"ignore-freebsd" ,
53
54
"ignore-fuchsia" ,
54
55
"ignore-gdb" ,
Original file line number Diff line number Diff line change @@ -166,6 +166,12 @@ pub(super) fn parse_cfg_name_directive<'a>(
166
166
message: "when the target vendor is Apple"
167
167
}
168
168
169
+ condition ! {
170
+ name: "enzyme" ,
171
+ condition: config. has_enzyme,
172
+ message: "when rustc is built with LLVM Enzyme"
173
+ }
174
+
169
175
// Technically the locally built compiler uses the "dev" channel rather than the "nightly"
170
176
// channel, even though most people don't know or won't care about it. To avoid confusion, we
171
177
// treat the "dev" channel as the "nightly" channel when processing the directive.
You can’t perform that action at this time.
0 commit comments