mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
add option to strip build regardless of optimization
This commit is contained in:
@ -158,6 +158,12 @@ pub fn build(b: *std.Build) !void {
|
|||||||
"Build a Position Independent Executable. Default true for system packages.",
|
"Build a Position Independent Executable. Default true for system packages.",
|
||||||
) orelse system_package;
|
) orelse system_package;
|
||||||
|
|
||||||
|
const strip = b.option(
|
||||||
|
bool,
|
||||||
|
"strip",
|
||||||
|
"Build the website data for the website.",
|
||||||
|
) orelse null;
|
||||||
|
|
||||||
const conformance = b.option(
|
const conformance = b.option(
|
||||||
[]const u8,
|
[]const u8,
|
||||||
"conformance",
|
"conformance",
|
||||||
@ -342,7 +348,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 = switch (optimize) {
|
.strip = strip orelse switch (optimize) {
|
||||||
.Debug => false,
|
.Debug => false,
|
||||||
.ReleaseSafe => false,
|
.ReleaseSafe => false,
|
||||||
.ReleaseFast, .ReleaseSmall => true,
|
.ReleaseFast, .ReleaseSmall => true,
|
||||||
|
Reference in New Issue
Block a user