aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorHimbeer <himbeerserverde@gmail.com>2024-03-26 13:09:34 +0100
committerHimbeer <himbeerserverde@gmail.com>2024-03-26 13:09:34 +0100
commit2d217382f258285d9b513eed4c3d53667e2b04eb (patch)
tree57b05fe0d426fc72d4a47ca5a08ce8119c1bf91d /build.zig
parent6aecb564dd79777c5a67db478e023180e16e3803 (diff)
add linker script
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 1debe5a..7a1a994 100644
--- a/build.zig
+++ b/build.zig
@@ -32,6 +32,8 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});
+ exe.setLinkerScript(std.Build.LazyPath.relative("linker.ld"));
+
// This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default
// step when running `zig build`).