summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index e8cdb76..a709c42 100755
--- a/configure.py
+++ b/configure.py
@@ -246,6 +246,8 @@ n.comment('Main executable is library plus main() function.')
objs = cxx('ninja')
ninja = n.build(binary('ninja'), 'link', objs, implicit=ninja_lib,
variables=[('libs', libs)])
+if ninja != 'ninja':
+ n.build('ninja', 'phony', ninja)
n.newline()
all_targets += ninja
@@ -297,11 +299,11 @@ if platform != 'mingw' and platform != 'windows':
ninja_test = n.build(binary('ninja_test'), 'link', objs, implicit=ninja_lib,
variables=[('ldflags', test_ldflags),
('libs', test_libs)])
+if ninja_test != 'ninja_test':
+ n.build('ninja_test', 'phony', ninja_test)
n.newline()
all_targets += ninja_test
-if platform == 'windows':
- n.build('ninja_test', 'phony', binary('ninja_test'))
n.comment('Perftest executable.')
objs = cxx('parser_perftest')