From 5b0a0d8254fa9c4d799d501b2a5b280170d4fd95 Mon Sep 17 00:00:00 2001 From: Pietro Albini Date: Thu, 16 Mar 2023 11:19:30 +0100 Subject: [PATCH] add support for ignore-gdb-version --- src/tools/compiletest/src/header/cfg.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tools/compiletest/src/header/cfg.rs b/src/tools/compiletest/src/header/cfg.rs index ffb81dfdcdb..da4af98ce91 100644 --- a/src/tools/compiletest/src/header/cfg.rs +++ b/src/tools/compiletest/src/header/cfg.rs @@ -187,6 +187,12 @@ macro_rules! condition { if name == "llvm-version" { outcome = MatchOutcome::External; } + + // Don't error out for ignore-llvm-version, that has a custom syntax and is handled + // elsewhere. + if name == "gdb-version" { + outcome = MatchOutcome::External; + } } ParsedNameDirective {