diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-12-02 17:08:03 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-12-02 17:08:03 +0100 |
commit | 9915f0266673d6186c730e467778524f8ddb1afa (patch) | |
tree | 96f4b3e8f2aebf9ed731537587aba394736d4c10 | |
parent | d9fb4b56a9bb651a40918ce000075db8257616ee (diff) | |
download | adventofcode2017-9915f0266673d6186c730e467778524f8ddb1afa.tar.gz adventofcode2017-9915f0266673d6186c730e467778524f8ddb1afa.tar.xz adventofcode2017-9915f0266673d6186c730e467778524f8ddb1afa.zip |
add c++ runner
-rwxr-xr-x | run.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..5534fd3 --- /dev/null +++ b/run.sh @@ -0,0 +1,8 @@ +#!/bin/sh -e + +DAY=${1?which day} + +: ${CXX:=g++} +: ${CXXFLAGS= -O2 -std=c++1z -g} +$CXX -Wall -Wextra $CXXFLAGS day$DAY.cc +./a.out <day$DAY |