From a7639fd4ad459aad5ad2d8fbe3b8c9414e5d4350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Mon, 15 Jan 2018 12:31:47 +0100 Subject: Call configure on deps in separate rebar command that compile This way we rebar.config.script can use vars detected by configure --- plugins/override_opts.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/override_opts.erl') 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) -> -- cgit v1.2.3