From 338cc3e87bc5ca871f2c678a286b41130bbb2db3 Mon Sep 17 00:00:00 2001 From: DualWu Date: Sun, 7 Feb 2021 17:33:49 +0800 Subject: [PATCH] relx opt should not sort --- src/rebar_opts.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_opts.erl b/src/rebar_opts.erl index e7d38975d..b2bf60f62 100644 --- a/src/rebar_opts.erl +++ b/src/rebar_opts.erl @@ -216,7 +216,7 @@ merge_opt(relx, NewValue, OldValue) -> {NewOverlays, NewOther} = lists:partition(Partition, NewValue), {OldOverlays, OldOther} = lists:partition(Partition, OldValue), rebar_utils:tup_umerge(NewOverlays, OldOverlays) - ++ rebar_utils:tup_umerge(OldOther, NewOther); + ++ OldOther ++ NewOther; merge_opt(Key, NewValue, OldValue) when Key == erl_opts; Key == eunit_compile_opts; Key == ct_compile_opts -> merge_erl_opts(lists:reverse(OldValue), NewValue);