aboutsummaryrefslogtreecommitdiffstats
path: root/build.zig
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2024-10-06 16:01:53 -0400
committerClyne Sullivan <clyne@bitgloo.com>2024-10-06 16:01:53 -0400
commitf4bf5658970543f26f25816b9123ecfd258bdd42 (patch)
tree80eda13e97de4bb0f7a8dc4c6b135b66aa1f1147 /build.zig
parentb262bb6b956bc044144d47a5e037d4af98a19a30 (diff)
better startup: all zig, bss and data init'd
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig3
1 files changed, 1 insertions, 2 deletions
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);