Skip to content

Commit

Permalink
clean up bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
evmar committed Feb 6, 2011
1 parent e6a3ed4 commit f3b38a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions HACKING
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"

0 comments on commit f3b38a8

Please sign in to comment.