From f3b38a89eb23bd460c952acee71167aa96da7fb4 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Sun, 6 Feb 2011 09:20:07 -0800 Subject: [PATCH] clean up bootstrap --- HACKING | 4 ++-- bootstrap.sh | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/HACKING b/HACKING index 84534e6..ac69256 100644 --- a/HACKING +++ b/HACKING @@ -3,8 +3,8 @@ Generating the docs: ./ninja doc Adjusting build flags: - Just a hack, but edit config.ninja (which was generated by bootstrap.sh) - to turn on debugging symbols. + It's kind of a hack, but edit config.ninja (which was generated by + bootstrap.sh) to turn on debugging symbols. Test-driven development: Set your build command to diff --git a/bootstrap.sh b/bootstrap.sh index 637e0d0..4761cc7 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -8,12 +8,15 @@ conf_cflags = -O2 conf_ldflags = -s # When developing: # conf_cflags = -g -Wall -# conf_ldlags = -g -Wall +# conf_ldlags = EOT + +echo "Building ninja manually..." srcs=$(ls src/*.cc | grep -v test) -echo "Building stage 1..." g++ -Wno-deprecated -o ninja.bootstrap $srcs -echo "Building final result..." + +echo "Building ninja using itself..." ./ninja.bootstrap ninja rm ninja.bootstrap + echo "Done!" -- 2.7.4