2017-09-16 06:10:46 +08:00
|
|
|
get_property(LLVM_LIT_CONFIG_MAP GLOBAL PROPERTY LLVM_LIT_CONFIG_MAP)
|
|
|
|
|
|
|
|
get_llvm_lit_path(LIT_BASE_DIR LIT_FILE_NAME)
|
|
|
|
|
|
|
|
set(LLVM_SOURCE_DIR ${LLVM_MAIN_SRC_DIR})
|
2013-12-04 07:22:18 +08:00
|
|
|
|
2013-12-30 15:02:12 +08:00
|
|
|
if(NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".")
|
|
|
|
foreach(BUILD_MODE ${CMAKE_CONFIGURATION_TYPES})
|
2017-09-16 06:10:46 +08:00
|
|
|
string(REPLACE ${CMAKE_CFG_INTDIR} ${BUILD_MODE} bi ${LIT_BASE_DIR})
|
|
|
|
set(bi "${bi}/${LIT_FILE_NAME}")
|
2013-12-30 15:02:12 +08:00
|
|
|
configure_file(
|
|
|
|
llvm-lit.in
|
|
|
|
${bi}
|
|
|
|
)
|
|
|
|
endforeach()
|
|
|
|
else()
|
|
|
|
set(BUILD_MODE .)
|
|
|
|
configure_file(
|
|
|
|
llvm-lit.in
|
2017-09-16 06:10:46 +08:00
|
|
|
${LIT_BASE_DIR}/${LIT_FILE_NAME}
|
2013-12-30 15:02:12 +08:00
|
|
|
)
|
|
|
|
endif()
|