-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
strip debug info from ReleaseSmall builds by default #6676
Copy link
Copy link
Labels
acceptedThis proposal is planned.This proposal is planned.breakingImplementing this issue could cause existing code to no longer compile or have different behavior.Implementing this issue could cause existing code to no longer compile or have different behavior.proposalThis issue suggests language modifications. If it also has the "accepted" label then it is planned.This issue suggests language modifications. If it also has the "accepted" label then it is planned.
Milestone
Metadata
Metadata
Assignees
Labels
acceptedThis proposal is planned.This proposal is planned.breakingImplementing this issue could cause existing code to no longer compile or have different behavior.Implementing this issue could cause existing code to no longer compile or have different behavior.proposalThis issue suggests language modifications. If it also has the "accepted" label then it is planned.This issue suggests language modifications. If it also has the "accepted" label then it is planned.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Repro code:
Running
zig build-exe main.zig -target arm-linux-none -O ReleaseSmallfor arm produces an executable that is 707KB in size. However, runningzig build-exe main.zig -target arm-linux-none -O ReleaseSmallfor i386 produces an executable that is just 61KB.Appending
--strip"fixes" the issue as the executables become 5KB and 3KB.