mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
cmake: fix dependencies in benchmarks
with libswift the compiler invocation also depends on the core libraries, because the compiler executable needs them. rdar://85911944
This commit is contained in:
@@ -708,7 +708,10 @@ function(swift_benchmark_compile)
|
||||
cmake_parse_arguments(SWIFT_BENCHMARK_COMPILE "" "PLATFORM" "" ${ARGN})
|
||||
|
||||
if(NOT SWIFT_BENCHMARK_BUILT_STANDALONE)
|
||||
set(stdlib_dependencies "swift-frontend")
|
||||
set(stdlib_dependencies "swift-frontend" "swiftCore-${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}")
|
||||
if(${SWIFT_HOST_VARIANT_SDK} IN_LIST SWIFT_DARWIN_PLATFORMS)
|
||||
list(APPEND stdlib_dependencies "swiftDarwin-${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}")
|
||||
endif()
|
||||
foreach(stdlib_dependency ${UNIVERSAL_LIBRARY_NAMES_${SWIFT_BENCHMARK_COMPILE_PLATFORM}})
|
||||
string(FIND "${stdlib_dependency}" "Unittest" find_output)
|
||||
if("${find_output}" STREQUAL "-1")
|
||||
|
||||
Reference in New Issue
Block a user