From 19fa2f2d880a693af2dd6346b120bb88e615f4e5 Mon Sep 17 00:00:00 2001 From: Barrett Harber Date: Sun, 11 Jan 2026 19:20:45 -0500 Subject: feat: add zig compiler support --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a4dfccd..0b62685 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,7 @@ - +# Compiler configuration +# Default: gcc +# To build with clang: make CC=clang +# To build with zig: make CC="zig cc" CC = gcc CFLAGS = -Wall -Wextra -g -I./src -I./src/ast -I./src/parser -I./src/codegen -I./plugins -I./src/zen -I./src/utils -I./src/lexer -I./src/analysis -I./src/lsp TARGET = zc @@ -78,4 +81,11 @@ clean: test: $(TARGET) ./tests/run_tests.sh -.PHONY: all clean install uninstall test +# Build with alternative compilers +zig: + $(MAKE) CC="zig cc" + +clang: + $(MAKE) CC=clang + +.PHONY: all clean install uninstall test zig clang -- cgit v1.2.3