diff --git a/configure.py b/configure.py index b7d7908498..bd3da67a52 100755 --- a/configure.py +++ b/configure.py @@ -246,7 +246,7 @@ def binary(name): objs = cxx('ninja') ninja = n.build(binary('ninja'), 'link', objs, implicit=ninja_lib, variables=[('libs', libs)]) -if ninja != 'ninja': +if 'ninja' not in ninja: n.build('ninja', 'phony', ninja) n.newline() all_targets += ninja @@ -300,7 +300,7 @@ def binary(name): ninja_test = n.build(binary('ninja_test'), 'link', objs, implicit=ninja_lib, variables=[('ldflags', test_ldflags), ('libs', test_libs)]) -if ninja_test != 'ninja_test': +if 'ninja_test' not in ninja_test: n.build('ninja_test', 'phony', ninja_test) n.newline() all_targets += ninja_test