summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrfeas <38209077+0xfea5@users.noreply.github.com>2025-08-30 12:45:39 +0300
committerOrfeas <38209077+0xfea5@users.noreply.github.com>2025-09-01 04:51:37 +0300
commitc9e583ef5d89918d52ab3447e26a75c29003f30b (patch)
treecb3db273ef44a7e5edc30f99fba6a657b8e2e47b
parentday02: done (diff)
downloadaoc24-c9e583ef5d89918d52ab3447e26a75c29003f30b.tar.gz
aoc24-c9e583ef5d89918d52ab3447e26a75c29003f30b.zip
aoc.mk: use g++15 and C++26
-rw-r--r--aoc.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/aoc.mk b/aoc.mk
index c7b7c87..2009ca1 100644
--- a/aoc.mk
+++ b/aoc.mk
@@ -1,5 +1,5 @@
1CXX = g++ 1CXX = g++-15
2CXX_FLAGS = -std=c++23 2CXX_FLAGS = -std=c++26
3SOLUTION = solution.cpp 3SOLUTION = solution.cpp
4INPUT = input.txt 4INPUT = input.txt
5TARGET = ./solution 5TARGET = ./solution
@@ -20,7 +20,7 @@ force:
20tests: ${TESTS} 20tests: ${TESTS}
21 21
22tests/test%.input: tests/test%.output compile force 22tests/test%.input: tests/test%.output compile force
23 @diff <(timeout ${TIMEOUT} ${TARGET} < $@) <(cat $<) > /tmp/aoc.output \ 23 @diff --color=always <(timeout ${TIMEOUT} ${TARGET} < $@) <(cat $<) > /tmp/aoc.output \
24 && echo -e "$@ [\e[0;32mok\e[m]" \ 24 && echo -e "$@ [\e[0;32mok\e[m]" \
25 || echo -e "$@ [\e[0;31mfail\e[m]" 25 || echo -e "$@ [\e[0;31mfail\e[m]"
26 @cat /tmp/aoc.output 26 @cat /tmp/aoc.output