-
Notifications
You must be signed in to change notification settings - Fork 435
Setup SVF in CLion
Before setting up SVF in CLion IDE, make sure you have followed the Setup Guide in SVF and initial steps have been finished to use the SVF tools.
Download the software from official websites . During the installation, you don't have to setup all following ENV and Cmake execution file path .etc
press open the SVF folder which has been build in your PC. Just open with the SVF_HOME.
Choose preference(win settings) to set Toolchains c++ compiler with LLVM_9.0.0 same as the Setup-guide in SVF. You need to choose the executable file.(LLVM/bin/clang++ or clang-9)
Then setup cmake part.
1. Set to debug mode.
2. Set cmake option the file path is the LLVM_9.0.0 path:
'-DLLVM_DIR=clang+llvm-9.0.0-x86_64-darwin-apple'
3. Generation path is you have build SVF executable file path
4. Build option should be set as '-j 4'
After four steps, press "Apply" and "OK". IDE will automatically build the whole project again
click 'configuration' and select what executable file you want debug. enter the program arguments and working directory path. Then press build and debug. You will see all variable and functions in your dash board.