From 85d18ea7cd375f1767c7b23be26abe8a3a5e31d7 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Sat, 5 Dec 2015 12:34:44 +0900 Subject: [PATCH] Add simple ninja script. --- build.ninja | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 build.ninja diff --git a/build.ninja b/build.ninja new file mode 100644 index 0000000..3a26d97 --- /dev/null +++ b/build.ninja @@ -0,0 +1,16 @@ +# build.ninja +cc = clang +cxx = clang++ +cflags = -Werror -Weverything +cxxflags = -Werror -Weverything + +rule compile + command = $cxx $cxxflags -c $in -o $out + +rule link + command = $cxx $in -o $out + +build test.o: compile test.cc +build test: link test.o + +default test