From 355db3bf04e46fa62eb73079c9461493c25759f3 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 8 May 2016 23:37:07 -0700 Subject: 2946 Reorganize build system to minimize duplication while handling 3 scenarios: 1. Locally running tests with `mu test` 2. Locally running tests until some layer with `build_and_test_until` 3. Running on Linux with `test_layers` 4. Running on Travis CI with multiple sharded calls to `test_layers` One thing we drop at this point is support for OSX in test_layers. We don't need it now that we have Travis CI working. --- build_until | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 build_until (limited to 'build_until') diff --git a/build_until b/build_until new file mode 100755 index 00000000..42d44bc7 --- /dev/null +++ b/build_until @@ -0,0 +1,15 @@ +#!/bin/bash +# Load all files sorting before the given argument. +# You can pass in a prefix, but files matching the prefix *won't* be included. + +set -e +set -v +make --no-print-directory tangle/tangle +make --no-print-directory enumerate/enumerate + +./tangle/tangle $(./enumerate/enumerate --until $1 |grep -v '.mu$') |grep -v "^\s*//:" > mu.cc +make --no-print-directory autogenerated_lists + +cat /dev/null $(./enumerate/enumerate --until $1 |grep '.mu$') > core.mu + +CFLAGS=${CFLAGS:-"-g -O3"} make -- cgit 1.4.1-2-gfad0