about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-12-02 17:08:03 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-12-02 17:08:03 +0100
commit9915f0266673d6186c730e467778524f8ddb1afa (patch)
tree96f4b3e8f2aebf9ed731537587aba394736d4c10
parentd9fb4b56a9bb651a40918ce000075db8257616ee (diff)
downloadadventofcode2017-9915f0266673d6186c730e467778524f8ddb1afa.tar.gz
adventofcode2017-9915f0266673d6186c730e467778524f8ddb1afa.tar.xz
adventofcode2017-9915f0266673d6186c730e467778524f8ddb1afa.zip
add c++ runner
-rwxr-xr-xrun.sh8
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