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