Hi!
I was trying to run an already build LLVM-pass ( the Hello world ) on Visual
Studio. I could locate the The Hello world pass sources in
llvm/lib/Transform/Hello/*.But when I compiled llvm using the command "cmake -G
"Visual Studio 10" ..\llvm" , I couldn't find the LLVMHello.so file in
"build_directory/Debug/lib/LLVMHello.so" neither in
"build_directory/Release/lib/LLVMHello.so".Someone please help me in running
this Hello world pass.
I was trying to run an already build LLVM-pass ( the Hello world ) on Visual
Studio. I could locate the The Hello world pass sources in
llvm/lib/Transform/Hello/*.But when I compiled llvm using the command "cmake -G
"Visual Studio 10" ..\llvm" , I couldn't find the LLVMHello.so file in
"build_directory/Debug/lib/LLVMHello.so" neither in
"build_directory/Release/lib/LLVMHello.so".Someone please help me in running
this Hello world pass.
IIRC, LLVM cannot produce shared library on Windows.
Regards,
chenwj
Hi,
Sorry, my bad. Loadable module is available on Windows, but is not built
with MSVC. Try MinGW instead.
Regards,
chenwj
Hey chenwj,
Thanks for the reply.Actually, I tried Cygwin to get things work on windows.Any idea how does it compare with MinGW?
Himanshu,
Thanks for the reply.Actually, I tried Cygwin to get things work on
windows.Any idea how does it compare with MinGW?
- "configure --enable-shared" provides capability of loadable
modules on cygming (with *big* llvm.dll)
- cmake build does not.
- MS development environments are supported only by cmake.
- loadable module is not supported on msvc.
capability of loadable module depends on "export-all" and
"auto-import" features in gnu binutils ld on trunk.
...Takumi