1
Fork 0

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