mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
switch deprecation notice
This commit is contained in:
parent
ab0a78a498
commit
a43b831965
2 changed files with 21 additions and 15 deletions
|
@ -727,15 +727,16 @@ fn new_v(args[]string) *V {
|
|||
}
|
||||
}
|
||||
else {
|
||||
switch target_os {
|
||||
case 'linux': _os = .linux
|
||||
case 'windows': _os = .windows
|
||||
case 'mac': _os = .mac
|
||||
case 'freebsd': _os = .freebsd
|
||||
case 'openbsd': _os = .openbsd
|
||||
case 'netbsd': _os = .netbsd
|
||||
case 'dragonfly': _os = .dragonfly
|
||||
case 'msvc': _os = .msvc
|
||||
_os = match target_os {
|
||||
'linux' => { OS.linux }
|
||||
'windows' => { OS.windows }
|
||||
'mac' => { OS.mac }
|
||||
'freebsd' => { OS.freebsd }
|
||||
'openbsd' => { OS.openbsd }
|
||||
'netbsd' => { OS.netbsd }
|
||||
'dragonfly' => { OS.dragonfly }
|
||||
'msvc' => { OS.msvc }
|
||||
else => { OS.linux }
|
||||
}
|
||||
}
|
||||
builtins := [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue