summaryrefslogtreecommitdiff
path: root/2020/prepare
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2022-12-01 22:30:22 +0100
committerBond_009 <bond.009@outlook.com>2022-12-01 22:30:22 +0100
commitbaf4910870a6e8999802b9a4a22eabd4142a34e3 (patch)
tree2d11443dc21e53bd0d99d015cf789937d6d95862 /2020/prepare
parent49d0c908f24b2c193c9deed1716fe36061ba26a1 (diff)
Move all Advent of Codes into one repo
Diffstat (limited to '2020/prepare')
-rwxr-xr-x2020/prepare11
1 files changed, 11 insertions, 0 deletions
diff --git a/2020/prepare b/2020/prepare
new file mode 100755
index 0000000..7e4f9e5
--- /dev/null
+++ b/2020/prepare
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+set -ef
+
+day="$(printf '%02d' "$1")"
+file="part$2.c"
+if test -f "part$2_fast.c"
+then
+ file="part$2_fast.c"
+fi
+clang -Wall -pedantic -O3 -march=native -mtune=native -flto -s -o run "$day/$file"