Skip to content
Browse files

Turn warning into error

Fail with an error "No LLVM version 3.4 found..." when the required version of
LLVM is not found in $PATH and 'to_llvm' is used; especially as long as this
feature is in a more or less experimental state.
  • Loading branch information...
1 parent 60185b5 commit f55067a61b6c8eebbcd6f6e5e9c01b071be7266f @yiannist committed Mar 28, 2014
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/hipe/main/hipe.erl
View
7 lib/hipe/main/hipe.erl
@@ -654,9 +654,10 @@ run_compiler_1(DisasmFun, IcodeFun, Options) ->
case proplists:get_bool(to_llvm, Opts0) andalso
not llvm_support_available() of
true ->
- ?WARNING_MSG("Ignoring 'to_llvm' because there is no LLVM 3.4 or " ++
- "greater installed in the system.\n", []),
- proplists:delete(to_llvm, Opts0);
+ ?error_msg("No LLVM version 3.4 or greater "
+ "found in $PATH; aborting "
+ "native code compilation.\n", []),
+ ?EXIT(cant_find_required_llvm_version);
false ->
Opts0
end,

0 comments on commit f55067a

Please sign in to comment.
Something went wrong with that request. Please try again.