diff options
author | Björn Gustavsson <[email protected]> | 2017-05-05 06:11:21 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-05-05 06:11:21 +0200 |
commit | 23dfc06144c42693ea92f6ab7e21d20d0cd6fec3 (patch) | |
tree | a940e6826101a8b88a55704cea798d1c880dd6d8 /lib/compiler/src/beam_asm.erl | |
parent | 4261ee2caae48ad7e215144c5abbfd34fffb35e5 (diff) | |
download | otp-23dfc06144c42693ea92f6ab7e21d20d0cd6fec3.tar.gz otp-23dfc06144c42693ea92f6ab7e21d20d0cd6fec3.tar.bz2 otp-23dfc06144c42693ea92f6ab7e21d20d0cd6fec3.zip |
Make 'slim' slim again
The undocumented compiler option 'slim' is used when compiling
the primary bootstrap. The purpose is to make the bootstrap smaller
and to avoid unnecessary churn in the git repository. That is,
the BEAM file should be different only if the actual code in the
file is different, and not if it has merely been re-compiled on
a different computer.
Two commits have fattened the 'slim' option. In 36f7087ae0f,
extra chunks are included even in slim BEAM files. In dfb899c0229f7,
the "Dbgi" were added as an extra chunk, causing it to be included
in slim files.
Make 'slim' slim again by only including the essential chunks and
the attribute chunk (as was the case before the {extra,...} option
was added).
Diffstat (limited to 'lib/compiler/src/beam_asm.erl')
-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 6d5071271c..c35efdfc9d 100644 --- a/lib/compiler/src/beam_asm.erl +++ b/lib/compiler/src/beam_asm.erl @@ -194,7 +194,7 @@ build_file(Code, Attr, Dict, NumLabels, NumFuncs, ExtraChunks, SourceFile, Opts, Chunks = case member(slim, Opts) of true -> - [Essentials,AttrChunk,CheckedChunks]; + [Essentials,AttrChunk]; false -> [Essentials,LocChunk,AttrChunk, CompileChunk,CheckedChunks,LineChunk] |