diff options
author | Kostis Sagonas <kostis@cs.ntua.gr> | 2010-10-26 00:38:51 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2010-10-26 00:38:51 +0200 |
commit | 7dc76d578ece73a0ae43d63c733b3c8778c46342 (patch) | |
tree | b83f179e16e625f72cf36cc0ab0710e236f29f2e /src/rebar_erlc_compiler.erl | |
parent | 1a577fcd433a502fb0e458ea2db96f5b5bae401c (diff) |
Tidier improvements
Diffstat (limited to 'src/rebar_erlc_compiler.erl')
-rw-r--r-- | src/rebar_erlc_compiler.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index e0d4def..50e890c 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -104,11 +104,11 @@ doterl_compile(Config, OutDir, MoreSources) -> ErlOpts = filter_defines(rebar_config:get(Config, erl_opts, []), []), ?DEBUG("erl_opts ~p~n",[ErlOpts]), %% Support the src_dirs option allowing multiple directories to - %% contain erlang source. This might be used, for example, should eunit tests be - %% separated from the core application source. + %% contain erlang source. This might be used, for example, should + %% eunit tests be separated from the core application source. SrcDirs = src_dirs(proplists:append_values(src_dirs, ErlOpts)), RestErls = [Source || Source <- gather_src(SrcDirs, []) ++ MoreSources, - lists:member(Source, FirstErls) == false], + not lists:member(Source, FirstErls)], % Split RestErls so that parse_transforms and behaviours are instead added % to erl_first_files, parse transforms first. @@ -131,8 +131,8 @@ doterl_compile(Config, OutDir, MoreSources) -> CurrPath = code:get_path(), true = code:add_path("ebin"), rebar_base_compiler:run(Config, NewFirstErls, OtherErls, - fun(S, C) -> internal_erl_compile(S, C, OutDir, - ErlOpts) + fun(S, C) -> + internal_erl_compile(S, C, OutDir, ErlOpts) end), true = code:set_path(CurrPath), ok. |