blob: 637e0d07bd0d460babf78807ba673eeb97f7d1f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
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
# conf_ldlags = -g -Wall
EOT
srcs=$(ls src/*.cc | grep -v test)
echo "Building stage 1..."
g++ -Wno-deprecated -o ninja.bootstrap $srcs
echo "Building final result..."
./ninja.bootstrap ninja
rm ninja.bootstrap
echo "Done!"
|