LibAFL_CC: The LibAFL compiler wrapper
LibAFL CC provides a convenient compiler wrapper toolkit for LibAFL users.
It's advisable to use this crate together with a fairly recent LLVM version.
To install LLVM, use the official download page.
The LLVM tools (including clang, clang++) are needed (newer than LLVM 11.0.0 up to LLVM 17.0.0)
- When compiling LLVM tools on Windows, you can try to compile LLVM with the below commands (tested on LLVM 16.0.6).
- NOTE: This assumes you have Visual Studio 17 2022 and MSVC v143 Tools installed under "Individual Components"
## Start x64 Native Tools Command Prompt for VS 2022
## Cloning the LLVM project repo
## Building Clang project first, the CMAKE_INSTALL_PREFIX is important here, make sure to select a folder path that doesn't contain any spaces in it
## Building lld project first, the CMAKE_INSTALL_PREFIX is important here, make sure to select a folder path that doesn't contain any spaces in it
## Changing back to the previous directory