diff options
Diffstat (limited to 'build.ninja')
-rw-r--r-- | build.ninja | 6 |
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", |