From d2cd2710b11d9bc4af5055f8bb614d41fb5a3a42 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 7 Nov 2015 09:01:48 -0600 Subject: do not sort mib_first_files during merge_opts, order must be kept --- src/rebar_opts.erl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/rebar_opts.erl b/src/rebar_opts.erl index 47451c5..97f39b8 100644 --- a/src/rebar_opts.erl +++ b/src/rebar_opts.erl @@ -111,6 +111,10 @@ merge_opts(NewOpts, OldOpts) -> NewValue; (profiles, NewValue, OldValue) -> dict:to_list(merge_opts(dict:from_list(NewValue), dict:from_list(OldValue))); + (mib_first_files, Value, Value) -> + Value; + (mib_first_files, NewValue, OldValue) -> + OldValue ++ NewValue; (_Key, NewValue, OldValue) when is_list(NewValue) -> case io_lib:printable_list(NewValue) of true when NewValue =:= [] -> -- cgit v1.1