diff options
author | Björn Gustavsson <[email protected]> | 2011-09-09 10:22:40 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-11-24 15:17:46 +0100 |
commit | 70e44417259e47cc1b170f8c6758771c626ddc6b (patch) | |
tree | 825f03afaec396c92e711f409d51f3db85693237 /lib/compiler/src/beam_trim.erl | |
parent | 042b9ae568fd4d00f2eeed89ae117e898593070d (diff) | |
download | otp-70e44417259e47cc1b170f8c6758771c626ddc6b.tar.gz otp-70e44417259e47cc1b170f8c6758771c626ddc6b.tar.bz2 otp-70e44417259e47cc1b170f8c6758771c626ddc6b.zip |
compiler: Don't include source code options in module_info(compile)
As far as I know, the purpose of the compiler options included in
Mod:module_info(compile) has never been documented.
An educated guess is that they are there in case you want to
re-compile the module with the same options, and also to aid in
debugging when you need to know how a module was compiled.
In neither case is there any need to include options given in the
source itself in options included in Mod:module_info(compile).
Including those options will only waste memory.
Therefore, only include in the BEAM file the options that were
given to compile:file/2.
Diffstat (limited to 'lib/compiler/src/beam_trim.erl')
0 files changed, 0 insertions, 0 deletions