summaryrefslogtreecommitdiff
path: root/plugins/override_opts.erl
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2018-01-15 12:31:47 +0100
committerPaweł Chmielowski <pchmielowski@process-one.net>2018-01-15 12:31:47 +0100
commita7639fd4ad459aad5ad2d8fbe3b8c9414e5d4350 (patch)
treecc0569b477724af3e52a336778bcea8da96f33f7 /plugins/override_opts.erl
parentUse override syntax that rebar3 accepts (diff)
Call configure on deps in separate rebar command that compile
This way we rebar.config.script can use vars detected by configure
Diffstat (limited to 'plugins/override_opts.erl')
-rw-r--r--plugins/override_opts.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/override_opts.erl b/plugins/override_opts.erl
index df875c55..1d321fc8 100644
--- a/plugins/override_opts.erl
+++ b/plugins/override_opts.erl
@@ -2,13 +2,13 @@
-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])
+ rebar_config:set(Conf, Opt, V ++ Value)
end, Config, Opts).
preprocess(Config, _Dirs) ->