aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/compile.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-06-08 11:55:06 +0200
committerBjörn Gustavsson <[email protected]>2016-06-08 11:55:06 +0200
commite7588998f05f92f1056e4259452f8a8363d732b5 (patch)
tree727f60cd8871f46f61fa7e90c844ddb4603eda60 /lib/compiler/src/compile.erl
parent55e96edb7bbb849fafaf628119fc2db9dea22e1e (diff)
parentd567a443e1b3506fdef7d1f57af8d4cd364d45b4 (diff)
downloadotp-e7588998f05f92f1056e4259452f8a8363d732b5.tar.gz
otp-e7588998f05f92f1056e4259452f8a8363d732b5.tar.bz2
otp-e7588998f05f92f1056e4259452f8a8363d732b5.zip
Merge branch 'talentdeficit/compiler/env_compiler_options/PR-1091/OTP-13654'
* talentdeficit/compiler/env_compiler_options/PR-1091/OTP-13654: compile.xml: Eliminate unsightly space before period Compiler: new function env_compiler_options/0
Diffstat (limited to 'lib/compiler/src/compile.erl')
-rw-r--r--lib/compiler/src/compile.erl9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index 149086152a..82ff8a95f3 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -26,6 +26,7 @@
-export([forms/1,forms/2,noenv_forms/2]).
-export([output_generated/1,noenv_output_generated/1]).
-export([options/0]).
+-export([env_compiler_options/0]).
%% Erlc interface.
-export([compile/3,compile_beam/3,compile_asm/3,compile_core/3]).
@@ -131,6 +132,14 @@ noenv_output_generated(Opts) ->
end, Passes).
%%
+%% Retrieve ERL_COMPILER_OPTIONS as a list of terms
+%%
+
+-spec env_compiler_options() -> [term()].
+
+env_compiler_options() -> env_default_opts().
+
+%%
%% Local functions
%%