-
Notifications
You must be signed in to change notification settings - Fork 341
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
lldb: link swift's libswift to lldb #3537
Conversation
if (CMAKE_SYSTEM_NAME MATCHES "Darwin") | ||
if(LIBSWIFT_BUILD_MODE MATCHES "HOSTTOOLS|.*HOSTLIBS") | ||
target_link_directories(${target} PRIVATE | ||
"${CMAKE_OSX_SYSROOT}/usr/lib/swift" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
@swift-ci test |
f5294c1
to
f9353d3
Compare
@swift-ci test |
f9353d3
to
a96da08
Compare
@swift-ci test |
There was a problem hiding this 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.
a96da08
to
56da298
Compare
@swift-ci test |
Fix the unified build; this should repair the CI: https://ci-external.swift.org/job/oss-swift-windows-toolchain-x86_64-vs2019/562/
lldb: fix the build after #3537
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.