aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-02-09 11:44:28 +0100
committerGitHub <[email protected]>2017-02-09 11:44:28 +0100
commitaff4e82fce59e4eaefa84ed0d1dd5c40927637e5 (patch)
tree56dd7ab69e25ec36a20e95c7040cc5d54af8eb36 /lib/hipe
parentb4471746fbf987b44420aa350dc3c2a899e6f0a5 (diff)
parent1d886081027c4d4fcfbf7f73d4708694cad582f5 (diff)
downloadotp-aff4e82fce59e4eaefa84ed0d1dd5c40927637e5.tar.gz
otp-aff4e82fce59e4eaefa84ed0d1dd5c40927637e5.tar.bz2
otp-aff4e82fce59e4eaefa84ed0d1dd5c40927637e5.zip
Merge pull request #1312 from richcarl/shell-smart-compile
Extend shell c(...) to find and recompile modules OTP-14190
Diffstat (limited to 'lib/hipe')
-rw-r--r--lib/hipe/main/hipe.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hipe/main/hipe.erl b/lib/hipe/main/hipe.erl
index 90ef84ca51..06facae5c1 100644
--- a/lib/hipe/main/hipe.erl
+++ b/lib/hipe/main/hipe.erl
@@ -441,7 +441,7 @@ compile(Name, File, Opts0) when is_atom(Name) ->
?error_msg("Cannot get Core Erlang code from BEAM binary.",[]),
?EXIT({cant_compile_core_from_binary});
true ->
- case filename:find_src(filename:rootname(File, ".beam")) of
+ case filelib:find_source(filename:rootname(File,".beam") ++ ".beam") of
{error, _} ->
?error_msg("Cannot find source code for ~p.", [File]),
?EXIT({cant_find_source_code});