mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
erlc: add support for detecting core transforms
This commit is contained in:
parent
fd17693b7c
commit
7742d70ee2
1 changed files with 2 additions and 0 deletions
|
@ -596,6 +596,8 @@ process_attr(compile, Form, Includes) ->
|
||||||
case erl_syntax:concrete(Arg) of
|
case erl_syntax:concrete(Arg) of
|
||||||
{parse_transform, Mod} ->
|
{parse_transform, Mod} ->
|
||||||
[atom_to_list(Mod) ++ ".erl"|Includes];
|
[atom_to_list(Mod) ++ ".erl"|Includes];
|
||||||
|
{core_transform, Mod} ->
|
||||||
|
[atom_to_list(Mod) ++ ".erl"|Includes];
|
||||||
L when is_list(L) ->
|
L when is_list(L) ->
|
||||||
{_, Mod} = lists:keyfind(parse_transform, 1, L),
|
{_, Mod} = lists:keyfind(parse_transform, 1, L),
|
||||||
[atom_to_list(Mod) ++ ".erl"|Includes]
|
[atom_to_list(Mod) ++ ".erl"|Includes]
|
||||||
|
|
Loading…
Reference in a new issue