mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
move strip switch behind option
This commit is contained in:
12
build.zig
12
build.zig
@ -162,7 +162,11 @@ pub fn build(b: *std.Build) !void {
|
|||||||
bool,
|
bool,
|
||||||
"strip",
|
"strip",
|
||||||
"Strip the final executable. Default true for fast and small releases",
|
"Strip the final executable. Default true for fast and small releases",
|
||||||
) orelse null;
|
) orelse switch (optimize) {
|
||||||
|
.Debug => false,
|
||||||
|
.ReleaseSafe => false,
|
||||||
|
.ReleaseFast, .ReleaseSmall => true,
|
||||||
|
};
|
||||||
|
|
||||||
const conformance = b.option(
|
const conformance = b.option(
|
||||||
[]const u8,
|
[]const u8,
|
||||||
@ -348,11 +352,7 @@ pub fn build(b: *std.Build) !void {
|
|||||||
.root_source_file = b.path("src/main.zig"),
|
.root_source_file = b.path("src/main.zig"),
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
.strip = strip orelse switch (optimize) {
|
.strip = strip,
|
||||||
.Debug => false,
|
|
||||||
.ReleaseSafe => false,
|
|
||||||
.ReleaseFast, .ReleaseSmall => true,
|
|
||||||
},
|
|
||||||
}) else null;
|
}) else null;
|
||||||
|
|
||||||
// Exe
|
// Exe
|
||||||
|
Reference in New Issue
Block a user