aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-05-13 16:53:31 +0200
committerHimbeer <himbeer@disroot.org>2024-05-13 16:53:31 +0200
commit9dd595c22dad9aabcdf3389d61f3cbc516f04d1c (patch)
tree7bf2c96a2343e8f04dfb5d23cbdbca5914c7156e /build.zig
parent6e3abbeaa324a1d68c806998dbe5cec4e6624c53 (diff)
Update to zig 0.12.0
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/build.zig b/build.zig
index 9b24928..01b43d5 100644
--- a/build.zig
+++ b/build.zig
@@ -30,13 +30,14 @@ pub fn build(b: *std.Build) void {
.name = "srvre_kernel.elf",
// In this case the main source file is merely a path, however, in more
// complicated build scripts, this could be a generated file.
- .root_source_file = .{ .path = "src/main.zig" },
.target = target,
+ .root_source_file = b.path("src/main.zig"),
.optimize = optimize,
+ .code_model = .medium,
});
- exe.code_model = .medium;
- exe.setLinkerScript(std.Build.LazyPath.relative("linker.ld"));
+ exe.entry = .{ .symbol_name = "start" };
+ exe.setLinkerScript(b.path("linker.ld"));
// This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default