diff options
author | Björn Gustavsson <bjorn@erlang.org> | 2009-12-02 19:55:02 +0100 |
---|---|---|
committer | Björn Gustavsson <bjorn@erlang.org> | 2009-12-09 19:45:20 +0100 |
commit | 12ce303085dc29d4401b167e6d57d5144c934f8f (patch) | |
tree | 369a798072eefbca08b083fd911b6fc0fff17496 /lib/compiler | |
parent | 856e8f2ebddd70f6556fbaf87e0b624d6e3c5cb6 (diff) | |
download | otp-12ce303085dc29d4401b167e6d57d5144c934f8f.tar.gz otp-12ce303085dc29d4401b167e6d57d5144c934f8f.tar.bz2 otp-12ce303085dc29d4401b167e6d57d5144c934f8f.zip |
compiler: Teach 'slim' to omit compilation info
The original intention for the undocumented 'slim' option was
to omit non-essential parts of *.beam files to reduce the
size of the primary bootstrap. Therefore, debug information and
local function information (only used by xref, not by the loader)
are omitted, but information about the compilation time and
compiler version are still included.
Including compilation information is troublesome, however, when
committing the bootstrap into a revision control system, because
every beam file is guaranteed to be changed every time the bootstrap
is updated.
Therefore, change the 'slim' option to also omit compilation
information.
Diffstat (limited to 'lib/compiler')
-rw-r--r-- | lib/compiler/src/beam_asm.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_asm.erl b/lib/compiler/src/beam_asm.erl index 90d25d87b2..497c4fa07b 100644 --- a/lib/compiler/src/beam_asm.erl +++ b/lib/compiler/src/beam_asm.erl @@ -150,7 +150,7 @@ build_file(Code, Attr, Dict, NumLabels, NumFuncs, Abst, SourceFile, Opts) -> %% Create IFF chunk. Chunks = case member(slim, Opts) of - true -> [Essentials,AttrChunk,CompileChunk,AbstChunk]; + true -> [Essentials,AttrChunk,AbstChunk]; false -> [Essentials,LocChunk,AttrChunk,CompileChunk,AbstChunk] end, build_form(<<"BEAM">>, Chunks). |