Skip to content

Commit 432c138

Browse files
committed
[Backtracing][Tests] Tweak swift-backtrace dependency.
We only want to add the `swift-backtrace` binary dependency when the SDK we're looking at actually has `swift-backtrace` enabled. rdar://124913332
1 parent 12aee90 commit 432c138

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@ function(get_test_dependencies SDK result_var_name)
8383
set(deps_binaries)
8484

8585
if (SWIFT_BUILD_LIBEXEC AND SWIFT_ENABLE_BACKTRACING)
86-
list(APPEND deps_binaries
87-
"swift-backtrace-${SDK}")
86+
# Only add if `swift-backtrace` builds for this SDK
87+
if (TARGET "swift-backtrace-${SDK}")
88+
list(APPEND deps_binaries
89+
"swift-backtrace-${SDK}")
90+
endif()
8891
endif()
8992

9093
if (SWIFT_INCLUDE_TOOLS)

0 commit comments

Comments
 (0)