Skip to content

Commit 5b0a0d8

Browse files
committed
add support for ignore-gdb-version
1 parent 8f8873e commit 5b0a0d8

File tree

1 file changed

+6
-0
lines changed
  • src/tools/compiletest/src/header

1 file changed

+6
-0
lines changed

src/tools/compiletest/src/header/cfg.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ pub(super) fn parse_cfg_name_directive<'a>(
187187
if name == "llvm-version" {
188188
outcome = MatchOutcome::External;
189189
}
190+
191+
// Don't error out for ignore-llvm-version, that has a custom syntax and is handled
192+
// elsewhere.
193+
if name == "gdb-version" {
194+
outcome = MatchOutcome::External;
195+
}
190196
}
191197

192198
ParsedNameDirective {

0 commit comments

Comments
 (0)