debugir
debugir copied to clipboard
Windows changes needed in VS2022
In LLVMExports.cmake modify to 2022 Community edition
\lib\cmake\llvm\LLVMExports.cmake (1 hit) Line 476: INTERFACE_LINK_LIBRARIES "C:/Program Files/Microsoft Visual Studio/2022/Community/DIA SDK/lib/amd64/diaguids.lib;LLVMBinaryFormat;LLVMObject;LLVMSupport;LLVMDebugInfoCodeView;LLVMDebugInfoMSF"
In CmakeLists.txt Modify from shared to static add_library(dbgir STATIC DebugIR.cpp)
Run cmake:
cmake -DCMAKE_BUILD_TYPE=Release -DLINK_LLVM_SHARED=OFF -DLLVM_DIR=D:/LLVM/Install/lib/cmake/llvm ../
cmake --build . --config Release
I was able to generate the executable in VS2022 in windows platform.