[LLVMdev] cmake patch to build other targets

Scott Graham scott.llvm at h4ck3r.net
Wed Nov 12 05:24:14 PST 2008

Hi, attached is a patch to improve including targets other than X86 in
CMake MSVC builds.

When adding libs to link, rather than always using LLVMX86CodeGen and
LLVMX86AsmPrinter, it grabs the correct ones.

It also adds "force-link-ints" to the various TargetMachine cpp files,
as well as X86AsmPrinter and PPCAsmPrinter. These are needed to be
able to encourage the Win32 linker to include those libs (even though
they're otherwise unreferenced) so that the registration global ctors
are run. llc's build file is updated to force include these modules
when appropriate.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake_targets.patch
Type: application/octet-stream
Size: 11957 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081112/bc1d33da/attachment.obj>

More information about the llvm-dev mailing list