support custom zig toolchains

This commit is contained in:
Quinten Kock 2020-12-26 02:17:10 +01:00
parent c9bd4ffa25
commit b34cb5f8b4
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
ZIG ?= zig
.PHONY: x86_64 i386 clean
x86_64 i386:
zig build -Dtarget="$@" --prefix . $(ZIGFLAGS)
$(ZIG) build -Dtarget="$@" --prefix . $(ZIGFLAGS)
clean:
rm -rf bin zig-cache