[llvm-commits] [llvm] r74417 - in /llvm/trunk: Makefile.rules include/llvm/CompilerDriver/Main.inc lib/CompilerDriver/BuiltinOptions.cpp lib/CompilerDriver/Makefile lib/CompilerDriver/Tool.cpp

Mikhail Glushenkov foldr at codedgers.com
Mon Jun 29 16:34:35 PDT 2009


Hi,

Howard Su <howard0su at ...> writes:

> Great. I can now wait to try. How can I compile a pass as a
> DLL? 

Since you are talking about a pass, I guess you're thinking about
*opt* plugins, but this was a *llvmc* commit.

Anyway, to compile a llvmc plugin you should just cd to the
plugin directory and run make:

$ cd $LLVM_DIR/tools/llvmc/plugins/Base
$ make
$ cd $LLVM_DIR/tools/llvmc/example/Skeleton
$ make
$ llvmc-skeleton -load $LLVM_DIR/Release/lib/plugin_llvmc_Base.dll --help


> Can you include a sample CMakefile?

No, I don't use CMake.





More information about the llvm-commits mailing list