mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
keep stripping zig debug info to avoid 250ms cost
This commit is contained in:
parent
da301df37b
commit
034b86973b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue