Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pref: update os_from_string, add missing qnx, remove deprecated wasm options that used - instead of _ #21390

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions vlib/v/pref/os.v
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ pub fn os_from_string(os_str string) !OS {
'serenity' {
return .serenity
}
'qnx' {
return .qnx
}
'plan9' {
return .plan9
}
Expand Down Expand Up @@ -122,18 +125,6 @@ pub fn os_from_string(os_str string) !OS {
return .wasi
}
else {
// handle deprecated names:
match os_str {
'wasm32-emscripten' {
eprintln('Please use `-os wasm32_emscripten` instead.')
return .wasm32_emscripten
}
'wasm32-wasi' {
eprintln('Please use `-os wasm32_wasi` instead.')
return .wasm32_wasi
}
else {}
}
return error('bad OS ${os_str}')
}
}
Expand Down