From 18315c1675d965e5d0210a560e4742c483fcfd7f Mon Sep 17 00:00:00 2001
From: Tuncer Ayaz
Date: Tue, 3 Dec 2013 18:43:30 +0100
Subject: Officially support building assembler files
erlc is wired to treat *.S files as assembler and build them as
compile:file(File, [from_asm]), but this is not documented. There's also
a documented compile:file/2 option called 'asm' (mapping to 'from_asm'),
but the wording discourages its use. All of this has been in place and
in use for a long time. Therefore, it should be supported officially.
To fix that, make the following changes:
* document erlc handling of *.core files
* un-document 'asm' and document 'from_asm' instead
* deprecate 'asm'
While at it, fix a minor typo in the test suite.
---
lib/compiler/doc/src/compile.xml | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
(limited to 'lib/compiler/doc/src')
diff --git a/lib/compiler/doc/src/compile.xml b/lib/compiler/doc/src/compile.xml
index 73d75851cf..eb7745890e 100644
--- a/lib/compiler/doc/src/compile.xml
+++ b/lib/compiler/doc/src/compile.xml
@@ -350,12 +350,11 @@ module.beam: module.erl \
parsed code before the code is checked for errors.
- asm
+ from_asm
-
The input file is expected to be assembler code (default
file suffix ".S"). Note that the format of assembler files
- is not documented, and may change between releases - this
- option is primarily for internal debugging use.
+ is not documented, and may change between releases.
no_strict_record_tests
--
cgit v1.2.3
From 455c8238535d2754234cd68bbf7caba9960607d6 Mon Sep 17 00:00:00 2001
From: Tuncer Ayaz
Date: Tue, 3 Dec 2013 19:16:16 +0100
Subject: Officially support building core files
erlc is wired to treat *.core files as core and build them as
compile:file(File, [from_core]), but this is not documented. There's
also an udocumented compile:file/2 option called 'from_core'. This has
been in place and in use for a long time. Therefore, it should be
supported officially.
To fix that, make the following changes:
* document erlc handling of *.core files
* document 'from_core'
---
lib/compiler/doc/src/compile.xml | 7 +++++++
1 file changed, 7 insertions(+)
(limited to 'lib/compiler/doc/src')
diff --git a/lib/compiler/doc/src/compile.xml b/lib/compiler/doc/src/compile.xml
index eb7745890e..1459f696a0 100644
--- a/lib/compiler/doc/src/compile.xml
+++ b/lib/compiler/doc/src/compile.xml
@@ -357,6 +357,13 @@ module.beam: module.erl \
is not documented, and may change between releases.
+ from_core
+ -
+
The input file is expected to be core code (default
+ file suffix ".core"). Note that the format of core files
+ is not documented, and may change between releases.
+
+
no_strict_record_tests
-
This option is not recommended.
--
cgit v1.2.3