summaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index dadecfc..c36d533 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -2,6 +2,13 @@
set -e
+cat >config.ninja <<EOT
+# This file is generated by bootstrap.sh.
+conf_cflags = -O2
+conf_ldflags = -s
+# When developing:
+# conf_cflags = -g -Wall
+EOT
srcs=$(ls src/*.cc | grep -v test)
echo "Building stage 1..."
g++ -Wno-deprecated -o ninja.bootstrap $srcs