From 0bf1bd3f8ecb1bc615ae7b79ef7636a9476c89dc Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 20 Nov 2014 16:56:17 -0800 Subject: Make browse detection consistent with other platform checks. --- configure.py | 9 +++++---- 1 file 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', -- cgit v0.12