aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-05-05 06:11:21 +0200
committerBjörn Gustavsson <[email protected]>2017-05-05 06:11:21 +0200
commit23dfc06144c42693ea92f6ab7e21d20d0cd6fec3 (patch)
treea940e6826101a8b88a55704cea798d1c880dd6d8 /lib/compiler/src
parent4261ee2caae48ad7e215144c5abbfd34fffb35e5 (diff)
downloadotp-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')
-rw-r--r--lib/compiler/src/beam_asm.erl2
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]