diff options
author | simonxu72 <simon.xu72@gmail.com> | 2018-11-13 13:19:13 +0800 |
---|---|---|
committer | simonxu72 <simon.xu72@gmail.com> | 2018-11-13 13:19:13 +0800 |
commit | 4014faf695c3da3a8f0c7aa088cdae0725433d16 (patch) | |
tree | 9601583c4314fd1fdca3c12d657ac54b286f9d21 /src/rebar3.erl | |
parent | 41d133856bf199034b0eeb0903bedc2071fba7e1 (diff) | |
parent | d0e9a553468424b53aeb9907201d0b4f5aa4fad2 (diff) |
merge from upstream/master
Diffstat (limited to 'src/rebar3.erl')
-rw-r--r-- | src/rebar3.erl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl index 059d530..a490a15 100644 --- a/src/rebar3.erl +++ b/src/rebar3.erl @@ -402,18 +402,21 @@ state_from_global_config(Config, GlobalConfigFile) -> Resources = application:get_env(rebar, resources, []), GlobalConfigThrowAway = rebar_state:create_resources(Resources, GlobalConfigThrowAway0), - GlobalState = case rebar_state:get(GlobalConfigThrowAway, plugins, []) of + Compilers = application:get_env(rebar, compilers, []), + GlobalConfigThrowAway1 = rebar_state:compilers(GlobalConfigThrowAway, Compilers), + + GlobalState = case rebar_state:get(GlobalConfigThrowAway1, plugins, []) of [] -> - GlobalConfigThrowAway; + GlobalConfigThrowAway1; GlobalPluginsToInstall -> rebar_plugins:handle_plugins(global, GlobalPluginsToInstall, - GlobalConfigThrowAway) + GlobalConfigThrowAway1) end, GlobalPlugins = rebar_state:providers(GlobalState), GlobalConfig2 = rebar_state:set(GlobalConfig, plugins, []), GlobalConfig3 = rebar_state:set(GlobalConfig2, {plugins, global}, - rebar_state:get(GlobalConfigThrowAway, plugins, [])), + rebar_state:get(GlobalConfigThrowAway1, plugins, [])), rebar_state:providers(rebar_state:new(GlobalConfig3, Config), GlobalPlugins). -spec test_state(rebar_state:t()) -> [{'extra_src_dirs',[string()]} | {'erl_opts',[any()]}]. |