diff options
author | Himbeer <himbeer@disroot.org> | 2024-05-13 16:53:31 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-05-13 16:53:31 +0200 |
commit | 9dd595c22dad9aabcdf3389d61f3cbc516f04d1c (patch) | |
tree | 7bf2c96a2343e8f04dfb5d23cbdbca5914c7156e /build.zig | |
parent | 6e3abbeaa324a1d68c806998dbe5cec4e6624c53 (diff) |
Update to zig 0.12.0
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |