diff options
author | alisdair sullivan <[email protected]> | 2016-06-06 21:52:14 -0700 |
---|---|---|
committer | alisdair sullivan <[email protected]> | 2016-06-07 12:28:18 -0700 |
commit | 60a13b64316a79edbf830811cdf113311c6547b7 (patch) | |
tree | 6069d920561c7216f8e16018daa25519b363a261 /lib/compiler/src/compile.erl | |
parent | d26c15e07229c90ba8353bd78d5406ada0f13271 (diff) | |
download | otp-60a13b64316a79edbf830811cdf113311c6547b7.tar.gz otp-60a13b64316a79edbf830811cdf113311c6547b7.tar.bz2 otp-60a13b64316a79edbf830811cdf113311c6547b7.zip |
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
Diffstat (limited to 'lib/compiler/src/compile.erl')
-rw-r--r-- | lib/compiler/src/compile.erl | 9 |
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 %% |