diff options
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/configure.py b/configure.py index 70c4be5..c2abcde 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', @@ -319,8 +323,6 @@ all_targets += ninja n.comment('Tests all build into ninja_test executable.') -variables = [] -test_ldflags = None test_libs = libs objs = [] @@ -347,8 +349,7 @@ if platform.is_windows(): if not platform.is_windows(): test_libs.append('-lpthread') ninja_test = n.build(binary('ninja_test'), 'link', objs, implicit=ninja_lib, - variables=[('ldflags', test_ldflags), - ('libs', test_libs)]) + variables=[('libs', test_libs)]) n.newline() all_targets += ninja_test |