mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
haiku support (part 2)
This commit is contained in:

committed by
Alexander Medvednikov

parent
f806e0f9e5
commit
6d28a80bf8
@ -966,6 +966,9 @@ pub fn new_v(args[]string) &V {
|
||||
$if solaris {
|
||||
_os = .solaris
|
||||
}
|
||||
$if haiku {
|
||||
_os = .haiku
|
||||
}
|
||||
}
|
||||
else {
|
||||
_os = os_from_string(target_os)
|
||||
@ -1149,6 +1152,7 @@ pub fn os_from_string(os string) OS {
|
||||
// notice that `-os msvc` became `-cc msvc`
|
||||
verror('use the flag `-cc msvc` to build using msvc')
|
||||
}
|
||||
'haiku' { return .haiku }
|
||||
}
|
||||
println('bad os $os') // todo panic?
|
||||
return .linux
|
||||
|
Reference in New Issue
Block a user