Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1dcbc23

Browse files
committed
Accept only-wasm32-wasip1 directives
1 parent 0157da4 commit 1dcbc23

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/tools/compiletest/src/header.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,9 @@ pub fn line_directive<'line>(
691691
}
692692
}
693693

694-
/// This is generated by collecting directives from ui tests and then extracting their directive
695-
/// names. This is **not** an exhaustive list of all possible directives. Instead, this is a
696-
/// best-effort approximation for diagnostics.
694+
/// This was originally generated by collecting directives from ui tests and then extracting their
695+
/// directive names. This is **not** an exhaustive list of all possible directives. Instead, this is
696+
/// a best-effort approximation for diagnostics. Add new headers to this list when needed.
697697
const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
698698
// tidy-alphabetical-start
699699
"assembly-output",
@@ -872,6 +872,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
872872
"only-unix",
873873
"only-wasm32",
874874
"only-wasm32-bare",
875+
"only-wasm32-wasip1",
875876
"only-windows",
876877
"only-x86",
877878
"only-x86_64",

0 commit comments

Comments
 (0)