diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-11-21 00:56:17 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-11-21 00:56:17 (GMT) |
commit | 0bf1bd3f8ecb1bc615ae7b79ef7636a9476c89dc (patch) | |
tree | 911fc6ca63323df7a5546b85c7b18a379e991cc6 /configure.py | |
parent | 60e8da125b20548a224239451314a1b20c9bccf7 (diff) | |
download | Ninja-0bf1bd3f8ecb1bc615ae7b79ef7636a9476c89dc.zip Ninja-0bf1bd3f8ecb1bc615ae7b79ef7636a9476c89dc.tar.gz Ninja-0bf1bd3f8ecb1bc615ae7b79ef7636a9476c89dc.tar.bz2 |
Make browse detection consistent with other platform checks.
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/configure.py b/configure.py index 6d4c4d4..05f74fd 100755 --- a/configure.py +++ b/configure.py @@ -94,6 +94,9 @@ class Platform(object): def supports_ppoll(self): return self._platform in ('linux', 'openbsd', 'bitrig') + def supports_ninja_browse(self): + return self._platform not in ('windows', 'solaris') + class Bootstrap: """API shim for ninja_syntax.Writer that instead runs the commands. @@ -335,9 +338,7 @@ else: if platform.supports_ppoll() and not options.force_pselect: cflags.append('-DUSE_PPOLL') - -have_browse = not platform.is_windows() and not platform.is_solaris() -if have_browse: +if platform.supports_ninja_browse(): cflags.append('-DNINJA_HAVE_BROWSE') def shell_escape(str): @@ -399,7 +400,7 @@ n.newline() objs = [] -if have_browse: +if platform.supports_ninja_browse(): n.comment('browse_py.h is used to inline browse.py.') n.rule('inline', command='src/inline.sh $varname < $in > $out', |