From f4bf5658970543f26f25816b9123ecfd258bdd42 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sun, 6 Oct 2024 16:01:53 -0400 Subject: better startup: all zig, bss and data init'd --- build.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 00d19c4..8493bbb 100644 --- a/build.zig +++ b/build.zig @@ -10,14 +10,13 @@ pub fn build(b: *std.Build) void { const exe = b.addExecutable(.{ .name = "stm32", - .root_source_file = b.path("src/main.zig"), + .root_source_file = b.path("src/startup.zig"), .target = target, //.optimize = .Debug, .optimize = .ReleaseSafe, .linkage = .static, }); - exe.addAssemblyFile(b.path("src/bootstrap.s")); exe.setLinkerScriptPath(b.path("link.ld")); b.installArtifact(exe); -- cgit v1.2.3