aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 131e3b9..c0f7887 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -156,6 +156,12 @@ define dep_autopatch_rebar.erl
lists:foreach(fun
({d, D}) ->
Write("ERLC_OPTS += -D" ++ atom_to_list(D) ++ "=1\n");
+ ({platform_define, Regex, D}) ->
+ case re:run("$(PLATFORM)", Regex, [{capture, none}]) of
+ nomatch -> ok;
+ match ->
+ Write("ERLC_OPTS += -D" ++ atom_to_list(D) ++ "=1\n")
+ end;
({parse_transform, PT}) ->
Write("ERLC_OPTS += +'{parse_transform, " ++ atom_to_list(PT) ++ "}'\n");
(_) -> ok