aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2009-12-02 19:55:02 +0100
committerBjörn Gustavsson <[email protected]>2009-12-09 19:45:20 +0100
commit12ce303085dc29d4401b167e6d57d5144c934f8f (patch)
tree369a798072eefbca08b083fd911b6fc0fff17496 /lib
parent856e8f2ebddd70f6556fbaf87e0b624d6e3c5cb6 (diff)
downloadotp-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')
-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 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).