-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lldb\utils] Place lldb-repro in a per-configuration directory to sup…
…port multi-configuration generators Summary: Currently, lldb-repro is placed in the wrong location for multi-configuration generators. For example, in the case of VS, it is placed in a directory $(Configuration) instead of in each of Debug, Release, etc. Reviewers: JDevlieghere Reviewed By: JDevlieghere Subscribers: mgorny, lldb-commits, asmith Tags: #lldb Differential Revision: https://reviews.llvm.org/D74148
- Loading branch information
1 parent
80e17e5
commit 733923a
Showing
2 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
add_custom_target(lldb-repro) | ||
add_dependencies(lldb-repro lldb-test-deps) | ||
set_target_properties(lldb-repro PROPERTIES FOLDER "lldb utils") | ||
configure_file(lldb-repro.py ${LLVM_RUNTIME_OUTPUT_INTDIR}/lldb-repro COPYONLY) | ||
|
||
# Generate lldb-repro Python script for each build mode. | ||
if(LLDB_BUILT_STANDALONE) | ||
set(config_types ".") | ||
if(CMAKE_CONFIGURATION_TYPES) | ||
set(config_types ${CMAKE_CONFIGURATION_TYPES}) | ||
endif() | ||
|
||
foreach(config_type ${config_types}) | ||
string(REPLACE ${CMAKE_CFG_INTDIR} ${config_type} config_runtime_output_dir ${LLVM_RUNTIME_OUTPUT_INTDIR}) | ||
configure_file(lldb-repro.py ${config_runtime_output_dir}/lldb-repro COPYONLY) | ||
endforeach() | ||
elseif(NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".") | ||
foreach(LLVM_BUILD_MODE ${CMAKE_CONFIGURATION_TYPES}) | ||
string(REPLACE ${CMAKE_CFG_INTDIR} ${LLVM_BUILD_MODE} LLDB_REPRO_DIR ${LLVM_RUNTIME_OUTPUT_INTDIR}) | ||
configure_file(lldb-repro.py ${LLDB_REPRO_DIR}/lldb-repro COPYONLY) | ||
endforeach() | ||
else() | ||
configure_file(lldb-repro.py ${LLVM_RUNTIME_OUTPUT_INTDIR}/lldb-repro COPYONLY) | ||
endif() |