mirror of
https://github.com/vlang/v.git
synced 2025-09-11 16:36:20 -04:00
v.pref: update os_from_string
, add missing qnx
, remove deprecated wasm options that used -
instead of _
(#21390)
This commit is contained in:
parent
7977e73e4b
commit
0cd3cf5a96
@ -86,6 +86,9 @@ pub fn os_from_string(os_str string) !OS {
|
||||
'serenity' {
|
||||
return .serenity
|
||||
}
|
||||
'qnx' {
|
||||
return .qnx
|
||||
}
|
||||
'plan9' {
|
||||
return .plan9
|
||||
}
|
||||
@ -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}')
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user