aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/doc/src
diff options
context:
space:
mode:
authorJosé Valim <[email protected]>2012-03-23 14:53:15 +0100
committerHenrik Nord <[email protected]>2012-04-10 12:32:23 +0200
commit2d785c07fbf9f533bf4627a65315a51c3efc2113 (patch)
tree852ae25edd463ba52745c315372776af1fda4a2f /lib/compiler/doc/src
parent5573888eea1ff6e3e169a6c873c2f5ada81eab62 (diff)
downloadotp-2d785c07fbf9f533bf4627a65315a51c3efc2113.tar.gz
otp-2d785c07fbf9f533bf4627a65315a51c3efc2113.tar.bz2
otp-2d785c07fbf9f533bf4627a65315a51c3efc2113.zip
Allow the source to be set when compiling forms
This commit adds a source option to compile:forms() that sets the source value returned by module_info(compile).
Diffstat (limited to 'lib/compiler/doc/src')
-rw-r--r--lib/compiler/doc/src/compile.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/compiler/doc/src/compile.xml b/lib/compiler/doc/src/compile.xml
index 84e9922847..60905710c9 100644
--- a/lib/compiler/doc/src/compile.xml
+++ b/lib/compiler/doc/src/compile.xml
@@ -294,6 +294,12 @@ module.beam: module.erl \
describing what it is doing.</p>
</item>
+ <tag><c>{source,FileName}</c></tag>
+ <item>
+ <p>Sets the value of the source, as returned by
+ <c>module_info(compile)</c>.</p>
+ </item>
+
<tag><c>{outdir,Dir}</c></tag>
<item>
<p>Sets a new directory for the object code. The current