I performed an strace while running the build. Once it starts looking for
libFoundation.so it only searches the build location inside the swift
directory, but none of the provided -Xlinker paths.
10795 execve("/swiftpm-linux-x86_64/debug/swift-build-stage1",
[""..., "-Xlinker", "-rpath", "-Xlin
What you will need to do to make this work is to get the "fake toolchain" to
look like how an actual toolchain looks on disk (e.g., libFoundation in the
same relative position, in `/../lib/swift/linux`), presumably using
a symlink. The special rpath is what is causing the built swift-build (in t
For SwiftPM, I'm looking to replace some POSIX calls with Foundation. NSTask
and NSFileManager amongst others. I've created a few PRs already for this, see
[1]. However before these can be merged, the build scripts need to be adjusted
to allow SwiftPM to build against Foundation.
There has alread