[LLVMdev] cmake patch to build other targets
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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11957 bytes
Desc: not available
More information about the llvm-dev