Open sebsto opened 6 months ago
There is one problem though
Swift 5.8 is a dependency to build Swift 5.9
~/swift-project/swift
+ /usr/bin/cmake --build /home/ec2-user/swift-project/build/buildbot_linux/swift-linux-x86_64 -- -j128 all swift-stdlib-linux-x86_64 swift-libexec-linux-x86_64
ninja: error: '/usr/lib/swift/linux/x86_64/swiftrt.o', needed by 'bin/swift-frontend', missing and no known rule to make it
The RPM build is able to compile and run a "Hello Wolrd" app. Basic smoke test is OK. I have no idea what this error message mean and how to fix this. Any guidance ?
This PR adds a new directory under
Platforms/Linux/RPM/AmazonLinux
to support building RPMs for Amazon Linux 2023.The main changes are:
ld.gold
from sources (see https://github.com/apple/swift/issues/65495) (with this script to download, compile, and install the linker)build_script
set the required compiler and linker flags, instead ofrpmbuild
Additional changes for Swift 5.9
Instead of creating one git branch per Swift version, I included
Dockerfile
andswiftland.spec
files for each version. The README file has instructions how to use these files.This is tested on x64 only