mirror of
https://github.com/kenshineto/kern.git
synced 2025-04-13 22:17:25 +00:00
only strip user binaries
This commit is contained in:
parent
b4a8862567
commit
0e7fc5cb03
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue