comparison utils/llvm-lit/CMakeLists.txt @ 77:54457678186b LLVM3.6

LLVM 3.6
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Mon, 08 Sep 2014 22:06:00 +0900
parents e4204d083e25
children 803732b1fca8
comparison
equal deleted inserted replaced
34:e874dbf0ad9d 77:54457678186b
1 if (WIN32 AND NOT CYGWIN) 1 if (WIN32 AND NOT CYGWIN)
2 # llvm-lit needs suffix.py for multiprocess to find a main module. 2 # llvm-lit needs suffix.py for multiprocess to find a main module.
3 set(suffix .py) 3 set(suffix .py)
4 endif () 4 endif ()
5 set(llvm_lit_path ${LLVM_RUNTIME_OUTPUT_INTDIR}/llvm-lit${suffix})
5 6
6 configure_file( 7 if(NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".")
7 llvm-lit.in 8 foreach(BUILD_MODE ${CMAKE_CONFIGURATION_TYPES})
8 ${LLVM_TOOLS_BINARY_DIR}/llvm-lit${suffix} 9 string(REPLACE ${CMAKE_CFG_INTDIR} ${BUILD_MODE} bi ${llvm_lit_path})
9 ) 10 configure_file(
11 llvm-lit.in
12 ${bi}
13 )
14 endforeach()
15 else()
16 set(BUILD_MODE .)
17 configure_file(
18 llvm-lit.in
19 ${llvm_lit_path}
20 )
21 endif()