[LLVMdev] InitializeNativeTarget

Kenneth Uildriks kennethuil at gmail.com
Wed Oct 7 07:31:45 PDT 2009


It seems that a client application needs to call
InitializeNativeTarget or LLVMInitializeNativeTarget before doing any
JITting.  Unfortunately, LLVMInitializeNativeTarget is defined static
inline and does not appear in the .a files; thus a client not written
in C or C++ trying to JIT cannot link to the library and call
LLVMInitializeNativeTarget that way.

It can call a target-specific library function such as
LLVMInitializeX86Target, but this is obviously not portable.



More information about the llvm-dev mailing list