mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-08 23:04:24 +00:00
example usage:
if (!strip) {
b.installArtifact(exe);
} else {
const stripped_exe = b.addObjCopy(exe.getEmittedBin(), .{
.basename = exe.out_filename, // set the name for the debuglink
.compress_debug = true,
.strip = .debug_and_symbols,
.extract_to_separate_file = true,
});
b.getInstallStep().dependOn(&b.addInstallBinFile(stripped_exe.getOutput(), exe.out_filename).step);
b.getInstallStep().dependOn(&b.addInstallBinFile(stripped_exe.getOutputSeparatedDebug().?, b.fmt("{s}.debug", .{exe.out_filename})).step);
}
|
||
|---|---|---|
| .. | ||
| CheckFile.zig | ||
| CheckObject.zig | ||
| Compile.zig | ||
| ConfigHeader.zig | ||
| Fmt.zig | ||
| InstallArtifact.zig | ||
| InstallDir.zig | ||
| InstallFile.zig | ||
| ObjCopy.zig | ||
| Options.zig | ||
| RemoveDir.zig | ||
| Run.zig | ||
| TranslateC.zig | ||
| WriteFile.zig | ||