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 /bootstrap.py | |
parent | c8ac05c871a22cdd3b41ab76e72544524cedafae (diff) | |
download | Ninja-7b9b1fb94aa44784e33734bef68c76e6a43361ef.zip Ninja-7b9b1fb94aa44784e33734bef68c76e6a43361ef.tar.gz Ninja-7b9b1fb94aa44784e33734bef68c76e6a43361ef.tar.bz2 |
support Bitrig
Diffstat (limited to 'bootstrap.py')
-rwxr-xr-x | bootstrap.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstrap.py b/bootstrap.py index 5682bf1..66ec85b 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -37,7 +37,7 @@ parser.add_option('--platform', help='target platform (' + '/'.join(platform_helper.platforms()) + ')', choices=platform_helper.platforms()) parser.add_option('--force-pselect', action='store_true', - help="ppoll() is used by default on Linux and OpenBSD, but older versions might need to use pselect instead",) + help="ppoll() is used by default on Linux, OpenBSD and Bitrig, but older versions might need to use pselect instead",) (options, conf_args) = parser.parse_args() @@ -53,7 +53,7 @@ def run(*args, **kwargs): # g++ call as well as in the later configure.py. cflags = os.environ.get('CFLAGS', '').split() ldflags = os.environ.get('LDFLAGS', '').split() -if platform.is_freebsd() or platform.is_openbsd(): +if platform.is_freebsd() or platform.is_openbsd() or platform.is_bitrig(): cflags.append('-I/usr/local/include') ldflags.append('-L/usr/local/lib') @@ -109,7 +109,7 @@ else: cflags.append('-D_WIN32_WINNT=0x0501') if options.x64: cflags.append('-m64') -if (platform.is_linux() or platform.is_openbsd()) and not options.force_pselect: +if (platform.is_linux() or platform.is_openbsd() or platform.is_bitrig()) and not options.force_pselect: cflags.append('-DUSE_PPOLL') if options.force_pselect: conf_args.append("--force-pselect") |