From: Nico Weber Date: Fri, 21 Nov 2014 00:56:17 +0000 (-0800) Subject: Make browse detection consistent with other platform checks. X-Git-Tag: v1.5.3^2~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bf1bd3f8ecb1bc615ae7b79ef7636a9476c89dc;p=platform%2Fupstream%2Fninja.git Make browse detection consistent with other platform checks. --- 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',