Teach utilsOsType about NetBSD

Summary: NetBSD is a free, fast, secure, and highly portable Unix-like Open Source operating system.

Reviewers: joerg, sas

Subscribers: sas, emaste, lldb-commits

Differential Revision: http://reviews.llvm.org/D12615

Change by Kamil Rytarowski <n54@gmx.com>

llvm-svn: 247116
This commit is contained in:
Stephane Sezer 2015-09-09 01:22:05 +00:00
parent 851f23db94
commit 9c99115367
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class EnumOsType( object ):
"Darwin",
"FreeBSD",
"Linux",
"NetBSD",
"Windows" ]
class __metaclass__( type ):
#++---------------------------------------------------------------------------
@ -71,6 +72,8 @@ def determine_os_type():
eOSType = EnumOsType.FreeBSD
elif (strOS.startswith("linux")):
eOSType = EnumOsType.Linux
elif (strOS.startswith("netbsd")):
eOSType = EnumOsType.NetBSD
elif strOS == "win32":
eOSType = EnumOsType.Windows