summaryrefslogtreecommitdiffstats
path: root/build.ninja
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-01-14 23:41:05 (GMT)
committerEvan Martin <martine@danga.com>2011-01-14 23:41:05 (GMT)
commit4868775879c76a6789d4962f1fcc4d7e49d611b2 (patch)
treef2c8c6dbe1e93c216362b851878e3eaf755430e7 /build.ninja
parentacb962aa6abbf5ead838972cda3b063c9308a3ef (diff)
downloadNinja-4868775879c76a6789d4962f1fcc4d7e49d611b2.zip
Ninja-4868775879c76a6789d4962f1fcc4d7e49d611b2.tar.gz
Ninja-4868775879c76a6789d4962f1fcc4d7e49d611b2.tar.bz2
doc updates
Diffstat (limited to 'build.ninja')
-rw-r--r--build.ninja7
1 files changed, 6 insertions, 1 deletions
diff --git a/build.ninja b/build.ninja
index 406d561..ea23d71 100644
--- a/build.ninja
+++ b/build.ninja
@@ -1,13 +1,18 @@
# This file is used to build ninja itself, but it also serves as a
# documented example.
+# Note that it is an explicit non-goal of ninja to make it convenient
+# to write these build files by hand. For a real project, you'd generate
+# this build file. I was tempted to generate this file even for ninja
+# itself but I figured it'd be easier to bootstrap this way.
+
# Most variables aren't magic at all; it's up to the rules to make use
# of them.
builddir = build
cxx = g++
#cxx = /home/evanm/projects/src/llvm/Release+Asserts/bin/clang++
cflags = -g -Wall -Wno-deprecated -fno-exceptions -fvisibility=hidden -pipe
-# needed for backtrace()
+# -rdynamic is needed for backtrace()
ldflags = -g -rdynamic
# Here we declare a "rule" named "cxx", which knows how to compile