Wrong llc argument is used when calling hipe:c()
chaoslawful opened this issue · comments
I followed the steps on this page: http://erllvm.softlab.ntua.gr/documentation/installation/ , and successfully installed both custom LLVM and Erlang/OTP. But the test procedures doesn't work for me:
1> c(test).
{ok,test}
2> hipe:c(test,[to_llvm]).
** exception exit: {hipe_llvm_main,opt,
"llc: Unknown command line argument '-enable-hipe-prologue'. Try: 'llc -help'\nllc: Did you mean '-hipe-prologue'?\n"}
in function hipe:run_compiler_1/3 (hipe.erl, line 678)
in call from hipe:run_compiler/4 (hipe.erl, line 640)
in call from hipe:c/3 (hipe.erl, line 328)
The compiled LLVM llc only has a option '-hipe-prologue', but it seems that the last commit in otp repo changed the option to '-enable-hipe-prologue'. Any suggestions?
Hi,
Thanks for pointing this! We have been using the rfc branch of yiannist/llvm repo recently because we're trying to push our patches upstream and there is some ongoing discussion that forces us to rebase constantly integrating suggestions/comments.
I reverted the last commit and this should be fixed now.
Thanks! : )
It works now:) Thanks!