summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2014-02-25 09:03:26 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2014-03-05 15:33:22 +0100
commit7742d70ee28fff4c33c628b636bb95d04f41a608 (patch)
treeb93b7e53aee81caa4beb8ce6cfc1a36930305a0c
parentfd17693b7c0c1106699fbe0636edd63e8b9aa7fc (diff)
erlc: add support for detecting core transforms
-rw-r--r--src/rebar_erlc_compiler.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl
index 9244dda..5a19966 100644
--- a/src/rebar_erlc_compiler.erl
+++ b/src/rebar_erlc_compiler.erl
@@ -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]