summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmile Joubert <emile@rabbitmq.com>2013-06-27 17:51:38 +0100
committerEmile Joubert <emile@rabbitmq.com>2013-06-27 17:51:38 +0100
commitbefa23f9c56f8b857e13a63bad9ce3f75ed288fd (patch)
tree9b5e34f06938261ed23eb0732e3c8b76211269bb
parentc6f3dcdc04f312051f644200c95d6580e51852b1 (diff)
downloadrabbitmq-server-befa23f9c56f8b857e13a63bad9ce3f75ed288fd.tar.gz
Ignore missing modules when performing HiPE compilation
-rw-r--r--src/rabbit.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index b3fb98af..31568ef5 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -281,7 +281,8 @@ warn_if_hipe_compilation_failed(false) ->
%% long time, so make an exception to our no-stdout policy and display
%% progress via stdout.
hipe_compile() ->
- Count = length(?HIPE_WORTHY),
+ HipeWorthy = [HW || HW <- ?HIPE_WORTHY, code:which(HW) =/= non_existing],
+ Count = length(HipeWorthy),
io:format("~nHiPE compiling: |~s|~n |",
[string:copies("-", Count)]),
T1 = erlang:now(),
@@ -290,7 +291,7 @@ hipe_compile() ->
io:format("#")
end || M <- Ms]
end) ||
- Ms <- split(?HIPE_WORTHY, ?HIPE_PROCESSES)],
+ Ms <- split(HipeWorthy, ?HIPE_PROCESSES)],
[receive
{'DOWN', MRef, process, _, normal} -> ok;
{'DOWN', MRef, process, _, Reason} -> exit(Reason)