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.erl8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl
index 6960a5f..f38b621 100644
--- a/src/rebar_port_compiler.erl
+++ b/src/rebar_port_compiler.erl
@@ -352,12 +352,8 @@ so_specs(Config, AppFile, Bins) ->
undefined ->
%% Ok, neither old nor new form is available. Use the app name and
%% generate a sensible default.
- case rebar_app_utils:load_app_file(AppFile) of
- {ok, AppName, _} ->
- ?FMT("priv/~s", [lists:concat([AppName, "_drv.so"])]);
- error ->
- ?FAIL
- end;
+ AppName = rebar_app_utils:app_name(AppFile),
+ ?FMT("priv/~s", [lists:concat([AppName, "_drv.so"])]);
AName ->
%% Old form is available -- use it