Skip to content

Instantly share code, notes, and snippets.

@iwadon
Created April 30, 2012 22:32
Show Gist options
  • Select an option

  • Save iwadon/2563272 to your computer and use it in GitHub Desktop.

Select an option

Save iwadon/2563272 to your computer and use it in GitHub Desktop.
diff --git a/configure.py b/configure.py
index b7d7908..278d42e 100755
--- a/configure.py
+++ b/configure.py
@@ -246,7 +246,7 @@ 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':
+if ninja != ['ninja']:
n.build('ninja', 'phony', ninja)
n.newline()
all_targets += ninja
@@ -300,7 +300,7 @@ 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':
+if ninja_test != ['ninja_test']:
n.build('ninja_test', 'phony', ninja_test)
n.newline()
all_targets += ninja_test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment