summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rebar.config.script8
1 files changed, 7 insertions, 1 deletions
diff --git a/rebar.config.script b/rebar.config.script
index 43bb8f0e..7ec52722 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -167,6 +167,12 @@ TestConfig = case file:read_file_info(TestConfigFile) of
""
end,
+AllDeps0 = Deps ++ CfgDeps,
+AllDeps = case lists:keytake(lager, 1, AllDeps0) of
+ {value, Tuple, Rest} -> [Tuple|Rest];
+ false -> AllDeps0
+ end,
+
Config = [{erl_opts, Macros ++ HiPE ++ DebugInfo ++
[{src_dirs, [asn1, src | SrcDirs]}]},
{sub_dirs, ["rel"]},
@@ -180,7 +186,7 @@ Config = [{erl_opts, Macros ++ HiPE ++ DebugInfo ++
[{"(XC - UC) || (XU - X - B - "
++ string:join(CfgXrefs, " - ") ++ ")", []}]},
{post_hooks, PostHooks ++ CfgPostHooks},
- {deps, Deps ++ CfgDeps}] ++ ElixirConfig,
+ {deps, AllDeps}] ++ ElixirConfig,
%%io:format("ejabberd configuration:~n ~p~n", [Config]),
Config.