Shell build directories are too large

NEW
Unassigned

Status

()

P3
normal
a year ago
11 months ago

People

(Reporter: sstangl, Unassigned)

Tracking

({triage-deferred})

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
Opt and Debug shell build directories occupy ~2GB. I often have a large number of these directories around for comparing different versions of shells. That occupies a lot of disk space, and probably slows down compilation to write in the first place.

Looking at what's taking up space, the obvious culprits are:

1. Debug information (which could be stripped, but often is wanted). About 1.6GB of the 2GB is debug info.

2. 441MB is occupied by gdb-tests and jsapi-tests (88MB stripped).

3. 568MB for libjs_static.a (13MB stripped); 178MB for libmozjs-55a1.so (11MB stripped).

When testing the shell, I do want debug information, but I don't need gdb-tests, jsapi-tests, or the libraries.

We could provide a "make shell" target that just would not build them in the first place. That would reduce the build directory from 2GB to ~760MB. Using a separate target would not affect standalone builds.

Sfink also proposed on IRC that we could default gdb-tests and jsapi-tests to not save debug info, which would reduce directory size from 2GB to ~1.5GB.
(In reply to Sean Stangl [:sstangl] from comment #0)
> We could provide a "make shell" target that just would not build them in the
> first place. That would reduce the build directory from 2GB to ~760MB. Using
> a separate target would not affect standalone builds.

Today, as a work-around, I compile with --disable-tests by default, unless Try reports issues in these test suites.
Keywords: triage-deferred
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.