From 561f0856cee601efc37f622c902b83a29f7157f3 Mon Sep 17 00:00:00 2001 From: Andrew Scherkus Date: Sat, 7 May 2011 20:52:27 -0700 Subject: Fix bootstrap.sh to include the correct subprocess{-win32}.cc based on the platform. --- bootstrap.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 6ff90e5..ee3e703 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -31,7 +31,13 @@ fi echo "Building ninja manually..." mkdir -p build ./src/inline.sh kBrowsePy < src/browse.py > build/browse_py.h -srcs=$(ls src/*.cc | grep -v test) + +if [ "${SYSTEMNAME:0:7}" = "MINGW32" ]; then + srcs=$(ls src/*.cc | grep -v test | grep -v subprocess.cc) +else + srcs=$(ls src/*.cc | grep -v test | grep -v subprocess-win32.cc) +fi + g++ -Wno-deprecated ${CFLAGS} ${LDFLAGS} -o ninja.bootstrap $srcs echo "Building ninja using itself..." -- cgit v0.12