summaryrefslogtreecommitdiff
path: root/src/rebar_port_compiler.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_port_compiler.erl')
-rw-r--r--src/rebar_port_compiler.erl9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl
index dace112..14f88a9 100644
--- a/src/rebar_port_compiler.erl
+++ b/src/rebar_port_compiler.erl
@@ -325,12 +325,9 @@ so_name(Config, AppFile) ->
undefined ->
%% Get the app name, which we'll use to
%% generate the linked port driver name
- case rebar_app_utils:load_app_file(AppFile) of
- {ok, AppName, _} ->
- lists:concat([AppName, "_drv.so"]);
- error ->
- ?FAIL
- end;
+ AppName = rebar_app_utils:app_name(AppFile),
+ lists:concat([AppName, "_drv.so"]);
+
Soname ->
Soname
end,