From f555c9916e6b0bc716100a92282ddc044ba73178 Mon Sep 17 00:00:00 2001 From: Soonho Kong Date: Thu, 4 Sep 2014 14:36:42 -0700 Subject: [PATCH] feat(bin/linja): add ninja support for cygwin-x86_64 and i386 --- bin/linja | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/linja b/bin/linja index 84108c48f5..89ce5c6a7b 100755 --- a/bin/linja +++ b/bin/linja @@ -70,15 +70,19 @@ def get_ninja_url(): if platform.architecture()[0] == "64bit": if platform.system() == "Linux": return prefix + "ninja-1.5.1-linux-x86_64" - elif platform.system() == "Windows" or platform.system().startswith("CYGWIN"): + elif platform.system() == "Windows": return prefix + "ninja-1.5.1-win.exe" + elif platform.system().startswith("CYGWIN"): + return prefix + "ninja-1.5.1-cygwin-x86_64.exe" elif platform.system() == "Darwin": return prefix + "ninja-1.5.1-osx" if platform.architecture()[0] == "32bit": if platform.system() == "Linux": return prefix + "ninja-1.5.1-linux-i386" - elif platform.system() == "Windows" or platform.system().startswith("CYGWIN"): + elif platform.system() == "Windows": pass # TODO(soonhok): add support + elif platform.system().startswith("CYGWIN"): + return prefix + "ninja-1.5.1-cygwin-i386.exe" elif platform.system() == "Darwin": pass # TODO(soonhok): add support error("we do not have ninja executable for this platform: %s" % platform.platform())