From 60a13b64316a79edbf830811cdf113311c6547b7 Mon Sep 17 00:00:00 2001
From: alisdair sullivan
Date: Mon, 6 Jun 2016 21:52:14 -0700
Subject: Compiler: new function env_compiler_options/0
retrieve the value of the environment variable ERL_COMPILER_OPTIONS
in the same manner as used by file/2, forms/2 and output_generated/2
---
lib/compiler/doc/src/compile.xml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
(limited to 'lib/compiler/doc/src')
diff --git a/lib/compiler/doc/src/compile.xml b/lib/compiler/doc/src/compile.xml
index 954750fcdd..0fb09061b6 100644
--- a/lib/compiler/doc/src/compile.xml
+++ b/lib/compiler/doc/src/compile.xml
@@ -39,6 +39,19 @@
+
+ env_compiler_options()
+
+ Compiler options defined via the environment variable
+ ERL_COMPILER_OPTIONS
+
+
+ Return compiler options given via the environment variable
+ ERL_COMPILER_OPTIONS. If the value is a list, it is
+ returned as is. If it is not a list, it is put into a list.
+
+
+
file(File)
Compiles a file.
@@ -768,6 +781,10 @@ module.beam: module.erl \
if you do not want the environment variable to be consulted,
for example, if you are calling the compiler recursively from
inside a parse transform.
+
+ The list can be retrieved with
+ env_compiler_options/0
+ .
--
cgit v1.2.3
From d567a443e1b3506fdef7d1f57af8d4cd364d45b4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?=
Date: Wed, 8 Jun 2016 10:14:17 +0200
Subject: compile.xml: Eliminate unsightly space before period
---
lib/compiler/doc/src/compile.xml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
(limited to 'lib/compiler/doc/src')
diff --git a/lib/compiler/doc/src/compile.xml b/lib/compiler/doc/src/compile.xml
index 0fb09061b6..61e214294e 100644
--- a/lib/compiler/doc/src/compile.xml
+++ b/lib/compiler/doc/src/compile.xml
@@ -783,8 +783,7 @@ module.beam: module.erl \
inside a parse transform.
The list can be retrieved with
- env_compiler_options/0
- .
+ env_compiler_options/0.