debugir icon indicating copy to clipboard operation
debugir copied to clipboard

Windows changes needed in VS2022

Open toabey opened this issue 4 months ago • 1 comments

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.

toabey avatar Sep 29 '25 18:09 toabey