diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-11-14 01:56:12 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-11-14 01:56:12 (GMT) |
commit | 0823ffc09139bf8a83d5bf354f321ceb8ce68693 (patch) | |
tree | 5f3b5a4997e0d0349c271215d13eb5ef85945e79 /configure.py | |
parent | 1f3f8b452b246144d7516410d7901635260f443e (diff) | |
parent | a39b9577ba25dc4968bbc5f4afe7d17524325bb0 (diff) | |
download | Ninja-0823ffc09139bf8a83d5bf354f321ceb8ce68693.zip Ninja-0823ffc09139bf8a83d5bf354f321ceb8ce68693.tar.gz Ninja-0823ffc09139bf8a83d5bf354f321ceb8ce68693.tar.bz2 |
Merge pull request #852 from nico/browse
Make sure configure.py and ninja.cc always agree on if -t browse is incl...
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.py b/configure.py index 518c499..a5e9323 100755 --- a/configure.py +++ b/configure.py @@ -175,6 +175,10 @@ if (platform.is_linux() or platform.is_openbsd() or platform.is_bitrig()) and \ not options.force_pselect: cflags.append('-DUSE_PPOLL') +have_browse = not platform.is_windows() and not platform.is_solaris() +if have_browse: + cflags.append('-DNINJA_HAVE_BROWSE') + def shell_escape(str): """Escape str such that it's interpreted as a single argument by the shell.""" @@ -233,7 +237,7 @@ n.newline() objs = [] -if not platform.is_windows() and not platform.is_solaris(): +if have_browse: n.comment('browse_py.h is used to inline browse.py.') n.rule('inline', command='src/inline.sh $varname < $in > $out', |