[LLVMdev] patches for the LLVM cmake build system

Victor Zverovich victor.zverovich at googlemail.com
Sun Mar 14 01:51:12 PST 2010


Hi llvm-dev,

Attached are two patches for the LLVM cmake build system.

The first one adds static runtimes (MT and MTd) to the list of runtimes for
the MSVC build.

The second one makes it possible to use llvm_config in external projects.
In this patch I took the liberty of changing the format of LLVMLibDeps.cmake
to define a single variable LLVM_LIB_DEPS instead of MSVC_LIB_DEPS_*.
 LLVM_LIB_DEPS contains the list of libraries and dependencies in the
following form:

set ( LLVM_LIB_DEPS
 * <lib-name> <dependency 1> ... <dependency n>
 ...
  )

Here '*' is used as a delimiter to specify where each library dependency
list starts

This allows to get both the list of libraries and dependency information
from one source. It is done in the explicit_map_components_to_libraries
function which uses LLVM_LIB_DEPS to populate llvm_libs and MSVC_LIB_DEPS_*
if they are not defined thus allowing external use.

Best regards,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100314/67ae897a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-static-runtimes-for-MSVC-build.patch
Type: application/octet-stream
Size: 727 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100314/67ae897a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Make-llvm_config-work-out-of-tree.patch
Type: application/octet-stream
Size: 15753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100314/67ae897a/attachment-0001.obj>


More information about the llvm-dev mailing list