Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use pre-installed llvm? #941

Closed
yurivict opened this issue Apr 8, 2021 · 1 comment
Closed

How to use pre-installed llvm? #941

yurivict opened this issue Apr 8, 2021 · 1 comment

Comments

@yurivict
Copy link

yurivict commented Apr 8, 2021

retdec behins to download llvm (https://github.com/avast/llvm/archive/2a1f3d8a97241c6e91710be8f84cf3cf80c03390.zip) when I have llvm10-10.0.1_5 installed.

How to instruct build to use pre-installed llvm?

@s3rvac
Copy link
Member

s3rvac commented Apr 8, 2021

Hi. RetDec requires a custom version of LLVM with downstream changes that are needed for the decompiler to work properly. Other LLVM versions (e.g. system wide) cannot be used because (1) they do not contain the necessary changes and (2) they might be incompatible (e.g. LLVM 10 is not compatible with LLVM 8, which is what RetDec is currently using).

There is a ticket for adding support for system-wide libraries into RetDec (#356). For some libraries, this has been already done, but not for LLVM. However, frankly, I do not think that it will ever happen for LLVM because of the two reasons above.

@s3rvac s3rvac closed this as completed Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants