aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/doc/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-02-15 10:13:00 +0100
committerGitHub <[email protected]>2017-02-15 10:13:00 +0100
commit0dfe26c8747362f954bbee4c8a99160af9adf5a5 (patch)
tree44049bc914151f6b500560b7d582f75a14601350 /lib/compiler/doc/src
parente725221bcf085c1cd19f6340acb477da8aec1705 (diff)
parent36f7087ae0fe9749b776b7b013ccc0a26a494a84 (diff)
downloadotp-0dfe26c8747362f954bbee4c8a99160af9adf5a5.tar.gz
otp-0dfe26c8747362f954bbee4c8a99160af9adf5a5.tar.bz2
otp-0dfe26c8747362f954bbee4c8a99160af9adf5a5.zip
Merge pull request #1341 from josevalim/jv-compile-extra-chunks
Add extra_chunks option to compile OTP-14221
Diffstat (limited to 'lib/compiler/doc/src')
-rw-r--r--lib/compiler/doc/src/compile.xml11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/compiler/doc/src/compile.xml b/lib/compiler/doc/src/compile.xml
index bd488a39a5..e6470b938f 100644
--- a/lib/compiler/doc/src/compile.xml
+++ b/lib/compiler/doc/src/compile.xml
@@ -418,7 +418,7 @@ module.beam: module.erl \
without module prefix to local or imported functions before
trying with auto-imported BIFs. If the BIF is to be
called, use the <c>erlang</c> module prefix in the call, not
- <c>{ no_auto_import,[{F,A}, ...]}</c>.</p>
+ <c>{no_auto_import,[{F,A}, ...]}</c>.</p>
</note>
<p>If this option is written in the source code, as a
<c>-compile</c> directive, the syntax <c>F/A</c> can be used instead
@@ -439,6 +439,15 @@ module.beam: module.erl \
</p>
</item>
+ <tag><c>{extra_chunks, [{binary(), binary()}]}</c></tag>
+ <item>
+ <p>Pass extra chunks to be stored in the <c>.beam</c> file.
+ The extra chunks must be a list of tuples with a four byte
+ binary as chunk name followed by a binary with the chunk contents.
+ See <seealso marker="stdlib:beam_lib">beam_lib</seealso> for
+ more information.
+ </p>
+ </item>
</taglist>
<p>If warnings are turned on (option <c>report_warnings</c>