1 add_custom_target(lldb-repro)
2 add_dependencies(lldb-repro lldb-test-depends)
3 set_target_properties(lldb-repro PROPERTIES FOLDER "lldb utils")
5 # Generate lldb-repro Python script for each build mode.
6 if(LLDB_BUILT_STANDALONE)
8 if(CMAKE_CONFIGURATION_TYPES)
9 set(config_types ${CMAKE_CONFIGURATION_TYPES})
12 foreach(config_type ${config_types})
13 string(REPLACE ${CMAKE_CFG_INTDIR} ${config_type} config_runtime_output_dir ${LLVM_RUNTIME_OUTPUT_INTDIR})
14 configure_file(lldb-repro.py ${config_runtime_output_dir}/lldb-repro COPYONLY)
16 elseif(NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".")
17 foreach(LLVM_BUILD_MODE ${CMAKE_CONFIGURATION_TYPES})
18 string(REPLACE ${CMAKE_CFG_INTDIR} ${LLVM_BUILD_MODE} LLDB_REPRO_DIR ${LLVM_RUNTIME_OUTPUT_INTDIR})
19 configure_file(lldb-repro.py ${LLDB_REPRO_DIR}/lldb-repro COPYONLY)
22 configure_file(lldb-repro.py ${LLVM_RUNTIME_OUTPUT_INTDIR}/lldb-repro COPYONLY)