eshard / obfuscator-llvm

Other
223 stars 42 forks source link

Missing link library #2

Closed nyacat closed 2 years ago

nyacat commented 2 years ago

Missing link library LLVMInterpreter in CMakeLists.txt L:41

This results in the inability to compile.

e.g: Link error

Edit: change to pastebin

PatriceBlin commented 2 years ago

Hi @nyacat

Which version of llvm were you building with ?

From your comment I understand using target_link_libraries(LLVMObfuscator LLVMSupport LLVMInterpreter) fixed the issue for you.

Right ?

nyacat commented 2 years ago

https://github.com/llvm/llvm-project branch llvmorg-14.0.6

PatriceBlin commented 2 years ago

I think the missing dependency would be LLVMCore, not LLVMInterpreter

On 14.0.6, isUsedOutsideOfBlock is define in llvm/lib/IR/Instruction.cpp and part of LLVMCore. I guess the link with LLVMInterpreter worked because it itself depends on LLVMCore

If possible, would you kindly test if using target_link_libraries(LLVMObfuscator LLVMSupport LLVMCore) fixes the link for you ?

Thanks

nyacat commented 2 years ago

Thanks! that was full fix for me.