summaryrefslogtreecommitdiff
path: root/src/rebar_erlc_compiler.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-10-12 12:10:11 -0500
committerTristan Sloughter <t@crashfast.com>2015-10-12 12:10:11 -0500
commit6e4ab1e7231bb3d752d6ffa7b76cac7c7ae8f561 (patch)
tree0a074883cdcfab97737384294bee2dc49c86b2d1 /src/rebar_erlc_compiler.erl
parent2754214bd3e310646101f0de350b02faeb372dbf (diff)
parent4ad998b7187a5910304ffeef867571400b6b4c61 (diff)
Merge pull request #864 from ferd/fix-first-files-prefixes
Support proper paths in non-erl first files
Diffstat (limited to 'src/rebar_erlc_compiler.erl')
-rw-r--r--src/rebar_erlc_compiler.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl
index 2976a4f..b9192c3 100644
--- a/src/rebar_erlc_compiler.erl
+++ b/src/rebar_erlc_compiler.erl
@@ -89,18 +89,18 @@ compile(AppInfo) ->
-spec compile(rebar_dict(), file:name(), file:name()) -> 'ok'.
compile(Opts, Dir, OutDir) ->
rebar_base_compiler:run(Opts,
- check_files(rebar_opts:get(
- Opts, xrl_first_files, [])),
+ check_files([filename:join(Dir, File)
+ || File <- rebar_opts:get(Opts, xrl_first_files, [])]),
filename:join(Dir, "src"), ".xrl", filename:join(Dir, "src"), ".erl",
fun compile_xrl/3),
rebar_base_compiler:run(Opts,
- check_files(rebar_opts:get(
- Opts, yrl_first_files, [])),
+ check_files([filename:join(Dir, File)
+ || File <- rebar_opts:get(Opts, yrl_first_files, [])]),
filename:join(Dir, "src"), ".yrl", filename:join(Dir, "src"), ".erl",
fun compile_yrl/3),
rebar_base_compiler:run(Opts,
- check_files(rebar_opts:get(
- Opts, mib_first_files, [])),
+ check_files([filename:join(Dir, File)
+ || File <- rebar_opts:get(Opts, mib_first_files, [])]),
filename:join(Dir, "mibs"), ".mib", filename:join([Dir, "priv", "mibs"]), ".bin",
fun compile_mib/3),
doterl_compile(Opts, Dir, OutDir).