./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
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!"