summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/override_opts.erl4
-rw-r--r--rebar.config.script4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/override_opts.erl b/plugins/override_opts.erl
index 1cdeca66..df875c55 100644
--- a/plugins/override_opts.erl
+++ b/plugins/override_opts.erl
@@ -2,11 +2,11 @@
-export([preprocess/2]).
override_opts(override, Config, Opts) ->
- lists:foldl(fun({Opt, Value}, Conf) ->
+ lists:foldl(fun({Opt, [Value]}, Conf) ->
rebar_config:set(Conf, Opt, Value)
end, Config, Opts);
override_opts(add, Config, Opts) ->
- lists:foldl(fun({Opt, Value}, Conf) ->
+ lists:foldl(fun({Opt, [Value]}, Conf) ->
V = rebar_config:get_local(Conf, Opt, []),
rebar_config:set(Conf, Opt, [Value | V])
end, Config, Opts).
diff --git a/rebar.config.script b/rebar.config.script
index c69acc79..b8eeaeb1 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -298,8 +298,8 @@ GenDepsConfigure =
fun(Hooks) ->
lists:map(fun({Pkg, Flags}) ->
DepPath = ResolveDepPath("deps/" ++ Pkg ++ "/"),
- {add, list_to_atom(Pkg), [{pre_hooks, {'compile',
- lists:flatten(GenDepConfigureLine(DepPath, Flags))}}]}
+ {add, list_to_atom(Pkg), [{pre_hooks, [{'compile',
+ lists:flatten(GenDepConfigureLine(DepPath, Flags))}]}]}
end, Hooks)
end,