diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-10-12 12:10:11 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-10-12 12:10:11 -0500 |
commit | 6e4ab1e7231bb3d752d6ffa7b76cac7c7ae8f561 (patch) | |
tree | 0a074883cdcfab97737384294bee2dc49c86b2d1 /src | |
parent | 2754214bd3e310646101f0de350b02faeb372dbf (diff) | |
parent | 4ad998b7187a5910304ffeef867571400b6b4c61 (diff) |
Merge pull request #864 from ferd/fix-first-files-prefixes
Support proper paths in non-erl first files
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_erlc_compiler.erl | 12 |
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). |