Skip to content

lldb: link swift's libswift to lldb #3537

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

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

eeckstein
Copy link

This is needed for the swift expression parser once parts of the parser are implemented in swift.
For details on libswift see https://github.com/apple/swift/blob/main/libswift/README.md.

if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
if(LIBSWIFT_BUILD_MODE MATCHES "HOSTTOOLS|.*HOSTLIBS")
target_link_directories(${target} PRIVATE
"${CMAKE_OSX_SYSROOT}/usr/lib/swift"

Choose a reason for hiding this comment

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

This line looks suspicious to me but I also don't fully understand what it does. Does this end up being in an rpath pointing into the build machine's SDK?

Copy link
Author

Choose a reason for hiding this comment

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

For macOS: only in "bootstrapping" mode, which is only used for testing. For other modes the rpath is pointing to /usr/lib/swift.

For Linux: yes, but I couldn't figure out how to fix that. But this is already the case without this change.

@eeckstein
Copy link
Author

@swift-ci test

@eeckstein
Copy link
Author

@swift-ci test

@eeckstein
Copy link
Author

@swift-ci test

Copy link

@JDevlieghere JDevlieghere left a comment

Choose a reason for hiding this comment

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

LGTM

This is needed for the swift expression parser once parts of the parser are implemented in swift.
@eeckstein
Copy link
Author

@swift-ci test

@eeckstein eeckstein merged commit eaee47c into swiftlang:stable/20210726 Dec 23, 2021
@eeckstein eeckstein deleted the libswift-in-lldb branch December 27, 2021 10:39
compnerd added a commit that referenced this pull request Jan 5, 2022
eeckstein added a commit that referenced this pull request Jan 5, 2022
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