Browse Source

erlc: add support for detecting core transforms

pull/3/head
Anthony Ramine 11 years ago
committed by Tuncer Ayaz
parent
commit
7742d70ee2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/rebar_erlc_compiler.erl

+ 2
- 0
src/rebar_erlc_compiler.erl View File

@ -596,6 +596,8 @@ process_attr(compile, Form, Includes) ->
case erl_syntax:concrete(Arg) of
{parse_transform, Mod} ->
[atom_to_list(Mod) ++ ".erl"|Includes];
{core_transform, Mod} ->
[atom_to_list(Mod) ++ ".erl"|Includes];
L when is_list(L) ->
{_, Mod} = lists:keyfind(parse_transform, 1, L),
[atom_to_list(Mod) ++ ".erl"|Includes]

Loading…
Cancel
Save