zig/lib/std/Build
Xavier Bouchoux 2da28d93de build/ObjCopy: strip debug info to a separate elf file.
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);
    }
2023-08-12 09:54:35 +02:00
..
Cache migration: std.math.{min, min3, max, max3} -> @min & @max 2023-06-16 13:44:09 -07:00
Step build/ObjCopy: strip debug info to a separate elf file. 2023-08-12 09:54:35 +02:00
Cache.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
Step.zig build system: follow-up enhancements regarding LazyPath 2023-07-30 11:19:32 -07:00