-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't build HelloWorld on windows (llvm 12.0.1) #42
Comments
Hi, thanks for visiting and creating this issue! I don't have access to a Windows machine, so I won't be too helpful. But this error message is pretty clear, so I would just replace
I hope that this will solve your problem! But please keep in mind that the support for plugins on Windows is a rather grey area. -Andrzej |
thanks for your reply, Finally solved this problem by modifying the hellowolrd code. but I can't can't directly using |
What modifications did you have to make? |
I just deleted the code about |
Thanks for sharing. I suspect that the required symbols are not exported. So are you using the legacy pass manager and everything works fine for you on Windows? |
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 ../
):if I modify
add_llvm_library
MODULE
toSHARED
, VS2019 can successfully compile the HelloWolrdbut got the following warning:
and then opt.exe failed to load passes
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 ..\
The text was updated successfully, but these errors were encountered: