How to debug LLVM by VS2019 on Windows
How to debug LLVM by VS2019 on Windows
- 一、Enviroment
- 二、Git Clone Code
- 三、Build Project
- 四、Debug LLVM
- 1. Clang example
一、Enviroment
-
Install VS2019 CommunityCheck below option:
-
Install Cmake Preferably the latest version:
二、Git Clone Code
Git clone code from GitHub. My LLVM version is 15.0.
三、Build Project
-
Create build folder in Project
-
Open command line in build folder
cmake -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_INSTALL_PREFIX=C:\Program\LLVM15 -G "Visual Studio 16 2019" -A x64 -Thost=x64 ../llvm
-
And then click LLVM.sln
-
ALL BUILD generate
四、Debug LLVM
1. Clang example
- Setup clang
-
Set properties
- Debug