diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-09-17 20:34:39 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-09-17 20:34:39 -0400 |
commit | d9638f88fb48371ceddc399ca3bfeee9ddaadcae (patch) | |
tree | 43b55356b6d9f7f54413e38533fa98f86742d2ad /src/rebar_prv_compile.erl | |
parent | df203da7f386d911d5da51556872fa380b41fe33 (diff) | |
parent | 7ad9f7ea75ab96aaecc4e420772ada151f2d4473 (diff) |
Merge pull request #786 from tsloughter/api_compile
add 'bare compile' provider, for starters for use by mix
Diffstat (limited to 'src/rebar_prv_compile.erl')
-rw-r--r-- | src/rebar_prv_compile.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_prv_compile.erl b/src/rebar_prv_compile.erl index 89ea430..9811de9 100644 --- a/src/rebar_prv_compile.erl +++ b/src/rebar_prv_compile.erl @@ -6,7 +6,8 @@ do/1, format_error/1]). --export([compile/3]). +-export([compile/2, + compile/3]). -include_lib("providers/include/providers.hrl"). -include("rebar.hrl"). @@ -81,6 +82,9 @@ build_app(State, Providers, AppInfo) -> copy_app_dirs(AppInfo, AppDir, OutDir), compile(State, Providers, AppInfo). +compile(State, AppInfo) -> + compile(State, rebar_state:providers(State), AppInfo). + compile(State, Providers, AppInfo) -> ?INFO("Compiling ~s", [rebar_app_info:name(AppInfo)]), AppDir = rebar_app_info:dir(AppInfo), |