Original build command in Makefile isswift build --disable-sandbox -c release -Xswiftc -static-stdlib can't work on Linux platform.
Know issue:
SR-2205 Linker fails when linking to Foundation if -static-stdlib flag is present - Swift
SR-7038 in 4.1, -static-stdlib doesn’t seem to work anymore - Swift
The static-stdlib can't be used on Linux platform.
So, currently adding build-for-linux command remove the -Xswiftc -static-stdlib. Make this issue to track this problem.
Original
buildcommand in Makefile isswift build --disable-sandbox -c release -Xswiftc -static-stdlibcan't work on Linux platform.Know issue:
SR-2205 Linker fails when linking to Foundation if -static-stdlib flag is present - Swift
SR-7038 in 4.1, -static-stdlib doesn’t seem to work anymore - Swift
The
static-stdlibcan't be used on Linux platform.So, currently adding
build-for-linuxcommand remove the-Xswiftc -static-stdlib. Make this issue to track this problem.