]> git.proxmox.com Git - rustc.git/blob - src/llvm/utils/llvm-lit/CMakeLists.txt
Imported Upstream version 1.0.0+dfsg1
[rustc.git] / src / llvm / utils / llvm-lit / CMakeLists.txt
1 if (WIN32 AND NOT CYGWIN)
2 # llvm-lit needs suffix.py for multiprocess to find a main module.
3 set(suffix .py)
4 endif ()
5 set(llvm_lit_path ${LLVM_RUNTIME_OUTPUT_INTDIR}/llvm-lit${suffix})
6
7 if(NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".")
8 foreach(BUILD_MODE ${CMAKE_CONFIGURATION_TYPES})
9 string(REPLACE ${CMAKE_CFG_INTDIR} ${BUILD_MODE} bi ${llvm_lit_path})
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()