1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vinix: support -os vinix (part 2)

This commit is contained in:
Delyan Angelov 2021-07-13 11:37:33 +03:00
parent 05466ce1b6
commit 1bf6743987
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 9 additions and 4 deletions

View File

@ -310,6 +310,12 @@ pub fn user_os() string {
$if haiku {
return 'haiku'
}
$if serenity {
return 'serenity'
}
$if vinix {
return 'vinix'
}
return 'unknown'
}

View File

@ -97,10 +97,9 @@ pub fn get_host_os() OS {
$if serenity {
return .serenity
}
// TODO: uncomment the vinix block after v.c is regenerated
// $if vinix {
// return .vinix
// }
$if vinix {
return .vinix
}
$if solaris {
return .solaris
}