Skip to content

Commit

Permalink
now you can use zig build instead of make
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Tralamazza committed Jun 20, 2019
1 parent 6189924 commit 23d4ac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ MAKEFLAGS += --no-builtin-variables
BUILD_FLAGS = --release-small -target thumbv7m-freestanding-none
LINKER_SCRIPT = arm_cm3.ld
LD_FLAGS = --gc-sections -nostdlib
OBJS = startup.o main.o stm32f10.o core_cm3.o
OBJS = startup.o main.o
PROG = firmware

%.o: %.zig
Expand Down
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub fn build(b: *Builder) void {

exe.setBuildMode(mode);
exe.setLinkerScriptPath("arm_cm3.ld");
exe.setOutputDir(".");

b.default_step.dependOn(&exe.step);
b.installArtifact(exe);
Expand Down

0 comments on commit 23d4ac8

Please sign in to comment.