Skip to content

Commit 43506a0

Browse files
committed
cmake: fix dependencies in benchmarks
with libswift the compiler invocation also depends on the core libraries, because the compiler executable needs them. rdar://85911944
1 parent 5b8714e commit 43506a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

benchmark/cmake/modules/AddSwiftBenchmarkSuite.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,10 @@ function(swift_benchmark_compile)
708708
cmake_parse_arguments(SWIFT_BENCHMARK_COMPILE "" "PLATFORM" "" ${ARGN})
709709

710710
if(NOT SWIFT_BENCHMARK_BUILT_STANDALONE)
711-
set(stdlib_dependencies "swift-frontend")
711+
set(stdlib_dependencies "swift-frontend" "swiftCore-${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}")
712+
if(${SWIFT_HOST_VARIANT_SDK} IN_LIST SWIFT_DARWIN_PLATFORMS)
713+
list(APPEND stdlib_dependencies "swiftDarwin-${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}")
714+
endif()
712715
foreach(stdlib_dependency ${UNIVERSAL_LIBRARY_NAMES_${SWIFT_BENCHMARK_COMPILE_PLATFORM}})
713716
string(FIND "${stdlib_dependency}" "Unittest" find_output)
714717
if("${find_output}" STREQUAL "-1")

0 commit comments

Comments
 (0)