Skip to content

can't build HelloWorld on windows (llvm 12.0.1) #42

@kiwings

Description

@kiwings

when I try to build HelloWorld project with VS2019, I got LINK error( my cmake command is: cmake -G "Visual Studio 16 2019" -A x64 -Thost=x64 ../):
image

if I modify add_llvm_library MODULE to SHARED, VS2019 can successfully compile the HelloWolrd
image2

but got the following warning:
image3

and then opt.exe failed to load passes
image4

In addition, the cmake invocation for llvm is:
cmake -DLLVM_ENABLE_PROJECTS="clang;lld;libcxx;llvm" -DLLVM_EXPORT_SYMOBLS_FOR_PLUGINS=On -G "Visual Studio 16 2019" -A x64 -Thost=x64 ..\

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions