mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Keep order for erl_first_files
This commit is contained in:
parent
b488179030
commit
d7657ba732
1 changed files with 5 additions and 5 deletions
|
@ -303,11 +303,11 @@ doterl_compile(Config, OutDir, MoreSources, ErlOpts) ->
|
||||||
%% (rebar_config:get_local instead of rebar_config:get_list), consider
|
%% (rebar_config:get_local instead of rebar_config:get_list), consider
|
||||||
%% logging a warning message for any file listed in erl_first_files which
|
%% logging a warning message for any file listed in erl_first_files which
|
||||||
%% wasn't found via gather_src.
|
%% wasn't found via gather_src.
|
||||||
{ErlFirstFiles, RestErls} =
|
RestErls = [File || File <- AllErlFiles,
|
||||||
lists:partition(
|
not lists:member(File, ErlFirstFilesConf)],
|
||||||
fun(Source) ->
|
%% NOTE: order of files in ErlFirstFiles is important!
|
||||||
lists:member(Source, ErlFirstFilesConf)
|
ErlFirstFiles = [File || File <- ErlFirstFilesConf,
|
||||||
end, AllErlFiles),
|
lists:member(File, AllErlFiles)],
|
||||||
%% Make sure that ebin/ exists and is on the path
|
%% Make sure that ebin/ exists and is on the path
|
||||||
ok = filelib:ensure_dir(filename:join("ebin", "dummy.beam")),
|
ok = filelib:ensure_dir(filename:join("ebin", "dummy.beam")),
|
||||||
CurrPath = code:get_path(),
|
CurrPath = code:get_path(),
|
||||||
|
|
Loading…
Reference in a new issue