From 7742d70ee28fff4c33c628b636bb95d04f41a608 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Tue, 25 Feb 2014 09:03:26 +0100 Subject: [PATCH] erlc: add support for detecting core transforms --- src/rebar_erlc_compiler.erl | 2 ++ 1 file changed, 2 insertions(+) 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]