about summary refs log blame commit diff stats
path: root/build_and_test_until
blob: e001ed5e6632ce3640c3119c26866e3e0010569d (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                                              


                  

                                                                                              
                                                                        
                                                                              
#!/bin/sh
# 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 tangle/tangle
make enumerate/enumerate
./tangle/tangle $(./enumerate/enumerate --until $* |grep -v '.mu$') |grep -v "^\s*//:" > mu.cc
cat /dev/null $(./enumerate/enumerate --until $* |grep '.mu$') > core.mu
CXX=${CXX:-clang++} CFLAGS=${CFLAGS:-"-O3 -fsanitize=undefined"} make valgrind