diff options
| author | Barrett Harber <barrett.harber@gmail.com> | 2026-01-11 19:20:45 -0500 |
|---|---|---|
| committer | Barrett Harber <barrett.harber@gmail.com> | 2026-01-11 19:20:45 -0500 |
| commit | 19fa2f2d880a693af2dd6346b120bb88e615f4e5 (patch) | |
| tree | 95f8dbbdbeb8da48bbd0243006a17a8faaccb027 /Makefile | |
| parent | ea9534610663a1a52fe248a08eeefa4bf8e5591e (diff) | |
feat: add zig compiler support
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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 |
