Skip to content

Pass platform name in SwiftCore link #10725

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

Open
wants to merge 1 commit into
base: stable/20240723
Choose a base branch
from

Conversation

etcwilde
Copy link

The platform name was hard-coded to linux. The target name when building for FreeBSD is swiftCore-freebsd-${arch} resulting in a build failure due to the missing swiftCore-linux-${arch} target.

ld: error: unable to find library -lswiftCore-linux-x86_64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Looking at the android bots, it looks like the swiftCore target name there is swiftCore-android-${arch}, so the hard-coded value is incorrect when building lldb to run on Android too.

The platform name was hard-coded to `linux`. The target name when
building for FreeBSD is `swiftCore-freebsd-${arch}` resulting in a build
failure due to the missing swiftCore-linux-${arch} target.
@etcwilde etcwilde requested a review from a team as a code owner May 21, 2025 22:29
@etcwilde
Copy link
Author

CC @finagolfin and @3405691582

@etcwilde
Copy link
Author

@swift-ci please test

@finagolfin
Copy link
Member

Sounds good, I haven't tried building this forked lldb for Android yet, so haven't hit this.

@3405691582
Copy link
Member

3405691582 commented May 21, 2025

Seems reasonable, but I also haven't built lldb this way (we get a lot of LLVM, including lldb, through the platform).

@etcwilde etcwilde moved this to Todo in Swift on FreeBSD May 22, 2025
@etcwilde etcwilde moved this from Todo to In Progress in Swift on FreeBSD May 22, 2025
@etcwilde etcwilde requested a review from JDevlieghere May 23, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants