only strip user binaries

This commit is contained in:
Murphy 2025-03-27 15:03:06 -04:00
parent b4a8862567
commit 0e7fc5cb03
Signed by: freya
GPG key ID: 9FBC6FFD6D2DBF17

View file

@ -230,6 +230,7 @@ const BuildKernBinaryOpts = struct {
sources: []const []const []const u8, sources: []const []const []const u8,
linker: ?[]const u8 = null, linker: ?[]const u8 = null,
entry: []const u8 = "_start", entry: []const u8 = "_start",
strip: bool = false,
}; };
fn build_kern_binary(b: *std.Build, opts: BuildKernBinaryOpts) void { fn build_kern_binary(b: *std.Build, opts: BuildKernBinaryOpts) void {
@ -238,7 +239,7 @@ fn build_kern_binary(b: *std.Build, opts: BuildKernBinaryOpts) void {
.name = opts.name, .name = opts.name,
.target = opts.target, .target = opts.target,
.optimize = opts.optimize, .optimize = opts.optimize,
.strip = true, .strip = opts.strip,
}); });
// add include path // add include path
@ -342,6 +343,7 @@ pub fn build(b: *std.Build) !void {
ulib_src, ulib_src,
}, },
.linker = "user/user.ld", .linker = "user/user.ld",
.strip = true,
}); });
} }