Skip to content

Windows changes needed in VS2022 #26

@toabey

Description

@toabey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions