aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorXavier Bouchoux <xavierb@gmail.com>2023-08-12 06:50:10 +0000
committerXavier Bouchoux <xavierb@gmail.com>2023-08-12 09:54:35 +0200
commit2da28d93dec0e9e484076def63e690384a4a5b1f (patch)
treee30aad29afc3c65b1b32dd192113e520718825b0 /src/codegen
parentaecc15391a4c37a4504d29cb7e3179990b180773 (diff)
downloadzig-2da28d93dec0e9e484076def63e690384a4a5b1f.tar.gz
zig-2da28d93dec0e9e484076def63e690384a4a5b1f.zip
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); }
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions