Hello.
Is it possible to build a swift project on Linux using the -Xswiftc -static-stdlib
so it can be executed on other Linux machines without the need to install swift?
I'm using the latest version of Swift (5.1.4) and when I type swift build -Xswiftc -static-stdlib
for a file that contains import Foundation
I'm getting:
/usr/bin/ld.gold: error: cannot find -lFoundation /usr/bin/ld.gold: error: cannot find -lswiftDispatch
I've already seen related posts but I couldn't find the right answer for me.