diff options
author | plakshman93 <[email protected]> | 2017-08-30 09:33:30 +0530 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-08-30 11:19:04 +0200 |
commit | d9a9158ccbb94dbb66772a7ef437f30d3e5f652c (patch) | |
tree | 800a969c7ff0718adf6fd6a62ab0f0dd7bdcdbfb /core | |
parent | 11d1b13188f2fdca827adff6086e4937f76b8dff (diff) | |
download | erlang.mk-d9a9158ccbb94dbb66772a7ef437f30d3e5f652c.tar.gz erlang.mk-d9a9158ccbb94dbb66772a7ef437f30d3e5f652c.tar.bz2 erlang.mk-d9a9158ccbb94dbb66772a7ef437f30d3e5f652c.zip |
Support in pattern matching of extra data type
This will support defining macro in `rebar.config.script`. An extra data type pattern matching is added in `dep_autopatch_rebar` function.
Diffstat (limited to 'core')
-rw-r--r-- | core/deps.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/deps.mk b/core/deps.mk index 94abc87..ac0ba99 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -249,6 +249,8 @@ define dep_autopatch_rebar.erl lists:foreach(fun ({d, D}) -> Write("ERLC_OPTS += -D" ++ atom_to_list(D) ++ "=1\n"); + ({d, DKey, DVal}) -> + Write("ERLC_OPTS += -D" ++ atom_to_list(DKey) ++ "=" ++ atom_to_list(DVal) ++ "\n"); ({i, I}) -> Write(["ERLC_OPTS += -I ", I, "\n"]); ({platform_define, Regex, D}) -> |