summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-01-03 20:45:16 +0100
committerBaitinq <[email protected]>2025-01-03 20:45:16 +0100
commit24bf72202161284e893e936f1cc0b192711aa5a5 (patch)
tree89cb38983ace57f5b9c3917fb48d0a078cb1d9f2
parentbetter example (diff)
downloadc-hashtable-24bf72202161284e893e936f1cc0b192711aa5a5.tar.gz
c-hashtable-24bf72202161284e893e936f1cc0b192711aa5a5.tar.bz2
c-hashtable-24bf72202161284e893e936f1cc0b192711aa5a5.zip
switch compiler to zig
-rw-r--r--Makefile2
-rw-r--r--flake.nix1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e28fd46..7227fab 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CC = gcc
+CC = zig cc
 CFLAGS = -Wall -g
 SRC = src/main.c src/hashtable.c
 OBJ = $(SRC:.c=.o)
diff --git a/flake.nix b/flake.nix
index 67cfaed..e3c7a96 100644
--- a/flake.nix
+++ b/flake.nix
@@ -18,6 +18,7 @@
     in
       pkgs.mkShell {
         buildInputs = with pkgs; [
+            zig
             gcc
             gnumake
             valgrind