Accept only-wasm32-wasip1 directives

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-03-27 21:43:40 +00:00
parent 0157da41ee
commit 1dcbc23c4b
No known key found for this signature in database
GPG Key ID: 95DDEBD74A1DC2C0

View File

@ -691,9 +691,9 @@ pub fn line_directive<'line>(
}
}
/// This is generated by collecting directives from ui tests and then extracting their directive
/// names. This is **not** an exhaustive list of all possible directives. Instead, this is a
/// best-effort approximation for diagnostics.
/// This was originally generated by collecting directives from ui tests and then extracting their
/// directive names. This is **not** an exhaustive list of all possible directives. Instead, this is
/// a best-effort approximation for diagnostics. Add new headers to this list when needed.
const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
// tidy-alphabetical-start
"assembly-output",
@ -872,6 +872,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
"only-unix",
"only-wasm32",
"only-wasm32-bare",
"only-wasm32-wasip1",
"only-windows",
"only-x86",
"only-x86_64",