mirror of
https://github.com/correl/rebar.git
synced 2024-11-15 03:00:18 +00:00
Fix indentation errors
This commit is contained in:
parent
b885b4dbfb
commit
39f8b344bc
1 changed files with 37 additions and 36 deletions
|
@ -116,13 +116,14 @@ compile(Config, AppFile) ->
|
||||||
%% and list of new binaries
|
%% and list of new binaries
|
||||||
lists:foreach(
|
lists:foreach(
|
||||||
fun({SoName,Bins}) ->
|
fun({SoName,Bins}) ->
|
||||||
AllBins = [sets:from_list(Bins), sets:from_list(NewBins)],
|
AllBins = [sets:from_list(Bins),
|
||||||
Intersection = sets:intersection(AllBins),
|
sets:from_list(NewBins)],
|
||||||
case needs_link(SoName, sets:to_list(Intersection)) of
|
NewBins1 = sets:intersection(AllBins),
|
||||||
|
case needs_link(SoName, sets:to_list(NewBins1)) of
|
||||||
true ->
|
true ->
|
||||||
rebar_utils:sh(
|
Fmt = "$CC ~s $LDFLAGS $DRV_LDFLAGS -o ~s",
|
||||||
?FMT("$CC ~s $LDFLAGS $DRV_LDFLAGS -o ~s",
|
Vars = [string:join(Bins, " "), SoName],
|
||||||
[string:join(Bins, " "), SoName]),
|
rebar_utils:sh(?FMT(Fmt, Vars),
|
||||||
[{env, Env}]);
|
[{env, Env}]);
|
||||||
false ->
|
false ->
|
||||||
?INFO("Skipping relink of ~s\n", [SoName]),
|
?INFO("Skipping relink of ~s\n", [SoName]),
|
||||||
|
|
Loading…
Reference in a new issue