Closed Bug 921440 Opened 11 years ago Closed 11 years ago

Build ASan optimized builds with -gline-tables-only to reduce file sizes

Categories

(Firefox Build System :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla27

People

(Reporter: decoder, Assigned: decoder)

Details

Attachments

(1 file)

Currently, all ASan builds are built with debug symbols and remain unstripped, which is why the resulting builds are so large in file size. While it's necessary for debugging these builds (which is even required sometimes with ASan), at least the optimized builds don't behave very well in a debugger anyway, so we can as well build them with -gline-tables-only to just leave the necessary information in the builds that is required for symbolizing ASan traces. This should reduce the file size from ~336M down to ~111M according to my try run. The unstripped tests will be at ~190M (stripped are ~159M for now, unstripped would be much larger).

I also verified that we can still symbolize traces using the new builds. Patch coming.
Use -gline-tables-only instead of -g for linux64 ASan release builds.
Attachment #811075 - Flags: review?(ted)
Comment on attachment 811075 [details] [diff] [review]
asan-gline-tables-only.patch

Review of attachment 811075 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/config/mozconfigs/linux64/nightly-asan
@@ +1,3 @@
>  # We still need to build with debug symbols
>  ac_add_options --disable-debug
> +ac_add_options --enable-optimize="-O2 -gline-tables-only"

Any reason this isn't --enable-debug-symbols="-gline-tables-only" ?
Attachment #811075 - Flags: review?(ted) → review+
https://hg.mozilla.org/mozilla-central/rev/c868eb8d83fd
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: