Skip to content

Commit

Permalink
make: fix build for Zig version 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mewmew committed Mar 22, 2024
1 parent d57450c commit 839dcb9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,18 @@ bin/boot.o: src/boot/boot.asm | bin
-o $@ \
$<

# NOTE: use `-fcompiler-rt` to include __zig_probe_stack symbol when linking
# (see https://github.com/ziglang/zig/issues/6817).
bin/%_32_zig.o: src/boot/%_32.zig | bin
@zig build-obj \
--cache-dir bin/zig-cache \
-I src/kernel \
-mno-red-zone \
-fcompiler-rt \
-static \
-target i386-freestanding-gnu \
-target x86-freestanding-gnu \
-O Debug \
-mcpu=_i386 \
-mcpu=i386 \
-femit-bin=$@ \
$<

Expand Down

0 comments on commit 839dcb9

Please sign in to comment.