diff options
| author | Emile Joubert <emile@rabbitmq.com> | 2013-06-27 17:51:38 +0100 |
|---|---|---|
| committer | Emile Joubert <emile@rabbitmq.com> | 2013-06-27 17:51:38 +0100 |
| commit | 61be4875979bbdfd232d6008b22dc71f3011eec5 (patch) | |
| tree | 9b5e34f06938261ed23eb0732e3c8b76211269bb /src/rabbit.erl | |
| parent | 54ad910e0b6ba58b88ed42da7e7a0802ddafb6ea (diff) | |
| download | rabbitmq-server-git-61be4875979bbdfd232d6008b22dc71f3011eec5.tar.gz | |
Ignore missing modules when performing HiPE compilation
Diffstat (limited to 'src/rabbit.erl')
| -rw-r--r-- | src/rabbit.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index b3fb98aff0..31568ef53e 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) |
