summaryrefslogtreecommitdiff
path: root/src/rebar_prv_compile.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-09-17 20:34:39 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-09-17 20:34:39 -0400
commitd9638f88fb48371ceddc399ca3bfeee9ddaadcae (patch)
tree43b55356b6d9f7f54413e38533fa98f86742d2ad /src/rebar_prv_compile.erl
parentdf203da7f386d911d5da51556872fa380b41fe33 (diff)
parent7ad9f7ea75ab96aaecc4e420772ada151f2d4473 (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.erl6
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),