Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cmake] Add debugdescription source file to swiftCore when needed #77777

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

justice-adams-apple
Copy link
Contributor

Add source file ObjectIdentifier+DebugDescription.swift to the target when not building for Android or Linux

@@ -239,6 +239,11 @@ add_library(swiftCore
"${CMAKE_CURRENT_BINARY_DIR}/UnsafeRawBufferPointer.swift"
"${CMAKE_CURRENT_BINARY_DIR}/Tuple.swift")

# https://github.com/swiftlang/swift/issues/77705 - Freestanding and Linux/Android builds both have failures to resolve.
if(NOT LINUX AND NOT ANDROID)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@compnerd Would it be preferred to use a cmake flag here which can be toggled on/off? Or will this suffice?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that given that this is a workaround for an issue, leaving this focused as the specific cases is fine. I do wonder if the underlying issue has been resolved and this workaround is now outdated.

@@ -239,6 +239,11 @@ add_library(swiftCore
"${CMAKE_CURRENT_BINARY_DIR}/UnsafeRawBufferPointer.swift"
"${CMAKE_CURRENT_BINARY_DIR}/Tuple.swift")

# https://github.com/swiftlang/swift/issues/77705 - Freestanding and Linux/Android builds both have failures to resolve.
if(NOT LINUX AND NOT ANDROID)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that given that this is a workaround for an issue, leaving this focused as the specific cases is fine. I do wonder if the underlying issue has been resolved and this workaround is now outdated.

@justice-adams-apple
Copy link
Contributor Author

@swift-ci test

@justice-adams-apple
Copy link
Contributor Author

@swift-ci please smoke test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants