diff options
author | David Hill <dhill@conformal.com> | 2013-06-29 21:34:51 (GMT) |
---|---|---|
committer | David Hill <dhill@conformal.com> | 2013-06-29 21:34:51 (GMT) |
commit | 7b9b1fb94aa44784e33734bef68c76e6a43361ef (patch) | |
tree | 760cfc7543c2369880a25e3b897e8fb2ecb46df1 /platform_helper.py | |
parent | c8ac05c871a22cdd3b41ab76e72544524cedafae (diff) | |
download | Ninja-7b9b1fb94aa44784e33734bef68c76e6a43361ef.zip Ninja-7b9b1fb94aa44784e33734bef68c76e6a43361ef.tar.gz Ninja-7b9b1fb94aa44784e33734bef68c76e6a43361ef.tar.bz2 |
support Bitrig
Diffstat (limited to 'platform_helper.py')
-rw-r--r-- | platform_helper.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/platform_helper.py b/platform_helper.py index 5097f49..e040246 100644 --- a/platform_helper.py +++ b/platform_helper.py @@ -19,7 +19,7 @@ import sys def platforms(): return ['linux', 'darwin', 'freebsd', 'openbsd', 'solaris', 'sunos5', - 'mingw', 'msvc', 'gnukfreebsd8'] + 'mingw', 'msvc', 'gnukfreebsd8', 'bitrig'] class Platform( object ): def __init__( self, platform): @@ -41,6 +41,8 @@ class Platform( object ): self._platform = 'mingw' elif self._platform.startswith('win'): self._platform = 'msvc' + elif self._platform.startswith('bitrig'): + self._platform = 'bitrig' def platform(self): @@ -69,3 +71,6 @@ class Platform( object ): def is_sunos5(self): return self._platform == 'sunos5' + + def is_bitrig(self): + return self._platform == 'bitrig' |