diff options
Diffstat (limited to 'src/rebar_port_compiler.erl')
-rw-r--r-- | src/rebar_port_compiler.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl index d962b28..732965c 100644 --- a/src/rebar_port_compiler.erl +++ b/src/rebar_port_compiler.erl @@ -137,9 +137,8 @@ expand_sources([Spec | Rest], Acc) -> expand_sources(Rest, Acc2). expand_objects(Sources) -> - lists:map(fun(File) -> - filename:join([filename:dirname(File),filename:basename(File) ++ ".o"]) - end, Sources). + [filename:join([filename:dirname(F), filename:basename(F) ++ ".o"]) + || F <- Sources]. run_precompile_hook(Config, Env) -> case rebar_config:get(Config, port_pre_script, undefined) of |