summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authormhsn <mail@mhsn.net>2025-12-02 21:50:37 +0000
committermhsn <mail@mhsn.net>2025-12-02 21:50:37 +0000
commite0e455270f4657e2294fefbd03d9ad0b469a87e0 (patch)
tree3f9ce64e7ea3b0fea7e1f61287c4dba9c66c7ee3 /check
parenta9652699e602a2656aaa295d12b4530b42432c5f (diff)
downloadaoc-e0e455270f4657e2294fefbd03d9ad0b469a87e0.tar.gz
aoc-e0e455270f4657e2294fefbd03d9ad0b469a87e0.zip
add c
Diffstat (limited to 'check')
-rwxr-xr-xcheck8
1 files changed, 8 insertions, 0 deletions
diff --git a/check b/check
index c609690..73a35ac 100755
--- a/check
+++ b/check
@@ -30,6 +30,14 @@ rustc)
cargo build --release --target-dir /tmp/aoc_rust --manifest-path $aoc_path/rust/Cargo.toml
solve=/tmp/aoc_rust/release/aoc_$year-$day
;;
+c)
+ gcc $aoc_path/c.c -Wall -Wextra -Werror -std=c23 -o /tmp/aoc_c
+ solve=/tmp/aoc_c
+ ;;
+cc)
+ gcc $aoc_path/c.c -Wall -Wextra -Werror -std=c23 -O3 -o /tmp/aoc_c
+ solve=/tmp/aoc_c
+ ;;
*)
echo "unknown lang: $lang"
exit 1