From baf4910870a6e8999802b9a4a22eabd4142a34e3 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Thu, 1 Dec 2022 22:30:22 +0100 Subject: Move all Advent of Codes into one repo --- 2020/prepare | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 2020/prepare (limited to '2020/prepare') 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" -- cgit v1.2.3