Skip to content

Commit 8aa7552

Browse files
Merge pull request #77777 from swiftlang/jadams/add-debugdescription-source
[Cmake] Add debugdescription source file to swiftCore when needed
2 parents 6331a7b + f0392db commit 8aa7552

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Runtimes/Core/core/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,11 @@ add_library(swiftCore
239239
"${CMAKE_CURRENT_BINARY_DIR}/UnsafeRawBufferPointer.swift"
240240
"${CMAKE_CURRENT_BINARY_DIR}/Tuple.swift")
241241

242+
# https://github.com/swiftlang/swift/issues/77705 - Freestanding and Linux/Android builds both have failures to resolve.
243+
if(NOT LINUX AND NOT ANDROID)
244+
target_sources(swiftCore PRIVATE ObjectIdentifier+DebugDescription.swift)
245+
endif()
246+
242247
set_target_properties(swiftCore PROPERTIES Swift_MODULE_NAME Swift)
243248

244249
if(SwiftCore_ENABLE_COMMANDLINE_SUPPORT)

0 commit comments

Comments
 (0)