forked from OSchip/llvm-project
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:
parent
851f23db94
commit
9c99115367
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue