0xlane / ollvm-rust

out-of-tree llvm obfuscation pass plugin (dynamically loadable by rustc). || rust toolchain with obfuscation llvm pass.
66 stars 16 forks source link

How to compile the plugin? #2

Closed chutuananh2k closed 2 months ago

chutuananh2k commented 2 months ago

Thank you for doing great work! I'm new to LLVM and don't know how to setup an environment to build the plugin. Please put an step-by-step of how to compile the plugin. Thank you very much!

0xlane commented 2 months ago

Hi,chutuananh2k.Thank you for your kind words!

I understand that setting up an environment for LLVM can be challenging for newcomers.I have already provided detailed compilation commands in the README. However, to assist you further, here's a more detailed step-by-step guide (with additional explanations compared to the instructions in the readme, particularly in the LLVM installation section):

Firstly, prepare the following compilation environment:

Secondly, start compiling plugin.This step can be compiled as instructed in the readme.

Eventually, all generated files should be within the 'build' folder.

If you're just looking to try out the plugin without delving into its inner workings, you can use the precompiled plugin files provided in the repository's release.Simply call it directly on a system that has already installed VC runtime.

0xlane commented 2 months ago

The command to install LLVM using choco, I haven't personally tested as I already had an LLVM environment set up and didn't need to reinstall. If choco doesn't work, you might need to look up alternative approach on google.

chutuananh2k commented 1 month ago

@0xlane Thank you very much!