summaryrefslogtreecommitdiffstats
path: root/build.ninja
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2010-11-14 01:17:32 (GMT)
committerEvan Martin <martine@danga.com>2010-11-14 01:17:32 (GMT)
commitb7427a04d6d0c2384f732a3afe6d0b81d2b3beee (patch)
tree8d40166592940d5a12bea74b78716e7b91ea75ac /build.ninja
parent99f28c8694b38854119f684e7dcd308fa4d9a2fc (diff)
downloadNinja-b7427a04d6d0c2384f732a3afe6d0b81d2b3beee.zip
Ninja-b7427a04d6d0c2384f732a3afe6d0b81d2b3beee.tar.gz
Ninja-b7427a04d6d0c2384f732a3afe6d0b81d2b3beee.tar.bz2
clang safe
Diffstat (limited to 'build.ninja')
-rw-r--r--build.ninja6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.ninja b/build.ninja
index c4d33f9..c96401d 100644
--- a/build.ninja
+++ b/build.ninja
@@ -8,6 +8,8 @@ builddir = build
# Most other variables, like cflags, aren't magic at all; it's up to
# the rules to make use of them.
+cxx = g++
+#cxx = /home/evanm/projects/src/llvm/Release+Asserts/bin/clang++
cflags = -g -Wall
# Here we declare a "rule" named "cxx", which knows how to compile
@@ -16,13 +18,13 @@ cflags = -g -Wall
# are special; see the documentation.
rule cxx
depfile = $out.d
- command = g++ -MMD -MF $out.d $cflags -c $in -o $out
+ command = $cxx -MMD -MF $out.d $cflags -c $in -o $out
rule ar
command = ar crsT $out $in
rule link
- command = g++ $ldflags -o $out $in
+ command = $cxx $ldflags -o $out $in
# These build rules build the ".o" files from the ".cc" files,
# build "ninja.a" by linking the builddir's "ninja.o",