diff options
author | Evan Martin <martine@danga.com> | 2011-01-15 01:21:25 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-01-15 01:27:27 (GMT) |
commit | 5dd7baa8cf810aef3763f3cfad15b5e5b3e2ef70 (patch) | |
tree | 9cd207cf75e8ba6dbc60159ae7e0c286ac2bc07c /build.ninja | |
parent | facdb4c90f01c762df4dcc87ab9cddf834fe41f2 (diff) | |
download | Ninja-5dd7baa8cf810aef3763f3cfad15b5e5b3e2ef70.zip Ninja-5dd7baa8cf810aef3763f3cfad15b5e5b3e2ef70.tar.gz Ninja-5dd7baa8cf810aef3763f3cfad15b5e5b3e2ef70.tar.bz2 |
use config file for build-time options; default to opt
Diffstat (limited to 'build.ninja')
-rw-r--r-- | build.ninja | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build.ninja b/build.ninja index ea23d71..683c94b 100644 --- a/build.ninja +++ b/build.ninja @@ -15,13 +15,17 @@ cflags = -g -Wall -Wno-deprecated -fno-exceptions -fvisibility=hidden -pipe # -rdynamic is needed for backtrace() ldflags = -g -rdynamic +# bootstrap.sh generates a "config" file, which contains more build +# flags. +include config.ninja + # Here we declare a "rule" named "cxx", which knows how to compile # C++ code. The variables indented below the rule are scoped to the # rule itself. The "command" and "depfile" variables in rule scope # are special; see the documentation. rule cxx depfile = $out.d - command = $cxx -MMD -MF $out.d $cflags -c $in -o $out + command = $cxx -MMD -MF $out.d $conf_cflags $cflags -c $in -o $out description = CC $out rule ar @@ -29,7 +33,7 @@ rule ar description = AR $out rule link - command = $cxx $ldflags -o $out $in + command = $cxx $conf_ldflags $ldflags -o $out $in description = LINK $out # These build rules build the ".o" files from the ".cc" files, |