of cmake.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78768
91177308-0d34-0410-b5e6-
96231b3b80d8
endif(UNIX)
endif(WIN32)
-if( EXISTS ${LLVM_TOOLS_BINARY_DIR}/llvm-config )
- set(HAVE_LLVM_CONFIG 1)
-endif( EXISTS ${LLVM_TOOLS_BINARY_DIR}/llvm-config )
-
include(config-ix)
option(LLVM_ENABLE_PIC "Build Position-Independent Code" OFF)
# large and three small executables. This is done to minimize memory load
# in parallel builds. Please retain this ordering.
-# FIXME: We don't yet have the ability to build llvm-config with CMake
-# based on explicit dependencies.
-if (FALSE)
+if( NOT MSVC )
add_subdirectory(llvm-config)
endif()
COMMAND ${CMAKE_COMMAND} -E remove -f temp.sed
COMMAND cat ${FINAL_LIBDEPS} >> ${LLVM_CONFIG}
COMMAND chmod +x ${LLVM_CONFIG}
- COMMAND cd ${CMAKE_BINARY_DIR} && ${CMAKE_COMMAND} -U HAVE_LLVM_CONFIG -D LLVM_BINARY_DIR="${LLVM_BINARY_DIR}" ${CMAKE_SOURCE_DIR}
DEPENDS ${FINAL_LIBDEPS} ${LLVM_CONFIG_IN}
COMMENT "Building llvm-config script."
)