bluesadi / Pluto

Obfuscator based on LLVM 14.0.6
829 stars 185 forks source link

cannot find -lLLVMTransformUtils #1

Closed lkmidas closed 3 years ago

lkmidas commented 3 years ago

Hi, I've recently built this project and ran into the following issues:

I wonder how can the project be built successfully without that line, and does it affect the result if I remove it? Thank you.

bluesadi commented 3 years ago

Hi, I'm not quite sure why this error occurred. Maybe it is because you didn't install LLVM to /usr/bin or /usr/local/bin.

About you question: In Transforms/CMakeLists.txt line 20 opt -lowerswitch -S IR/TestProgram_orig.ll -o IR/TestProgram_lowerswitch.ll I used the lowerswitch Pass from libLLVMTransformUtils.so. However, it still worked fine without link_libraries("libLLVMTransformUtils.so"). So that line is practically useless, you can remove it.

lkmidas commented 3 years ago

Thanks for the answer!