diff options
author | Tristan Sloughter <t@crashfast.com> | 2018-09-21 10:32:57 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-21 10:32:57 -0600 |
commit | 2dfba204e4dea5d1c3821fd26d22bd7201595f6c (patch) | |
tree | 147f7ab179d3342bc06d106e188d5c62637bc3ec /src/rebar_erlc_compiler.erl | |
parent | 8e0ef83de48968fed80114cc4518004ed59fa649 (diff) |
properly support top level app erl_opts from REBAR_CONFIG os var (#1889)
When REBAR_CONFIG was set it would not effect the top level app's
configuration because app_discover was rereading the top level
rebar.config which ignored REBAR_CONFIG. Instead this patch has
it use the existing configuration from REBAR_CONFIG.
Diffstat (limited to 'src/rebar_erlc_compiler.erl')
-rw-r--r-- | src/rebar_erlc_compiler.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index 57e5398..c63ca5b 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -99,6 +99,7 @@ compile(AppInfo, CompileOpts) when element(1, AppInfo) == app_info_t -> {recursive, dir_recursive(RebarOpts, "src", CompileOpts)}], MibsOpts = [check_last_mod, {recursive, dir_recursive(RebarOpts, "mibs", CompileOpts)}], + rebar_base_compiler:run(RebarOpts, check_files([filename:join(Dir, File) || File <- rebar_opts:get(RebarOpts, xrl_first_files, [])]), |