keep stripping zig debug info to avoid 250ms cost

This commit is contained in:
Brendan Hansknecht 2023-12-04 13:38:25 -08:00
parent da301df37b
commit 034b86973b
No known key found for this signature in database
GPG key ID: A199D0660F95F948

View file

@ -57,7 +57,7 @@ fn generateLlvmIrFile(
object_name: []const u8,
) void {
const obj = b.addObject(.{ .name = object_name, .root_source_file = main_path, .optimize = mode, .target = target, .use_llvm = true });
obj.strip = false;
obj.strip = true;
obj.disable_stack_probing = true;
// Generating the bin seems required to get zig to generate the llvm ir.
@ -87,7 +87,7 @@ fn generateObjectFile(
object_name: []const u8,
) void {
const obj = b.addObject(.{ .name = object_name, .root_source_file = main_path, .optimize = mode, .target = target, .use_llvm = true });
obj.strip = false;
obj.strip = true;
obj.link_function_sections = true;
obj.force_pic = true;
obj.disable_stack_probing = true;