erlc: add support for detecting core transforms

This commit is contained in:
Anthony Ramine 2014-02-25 09:03:26 +01:00 committed by Tuncer Ayaz
parent fd17693b7c
commit 7742d70ee2

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]