Build the swift standard library for embbeded targets

How can I build the swift standard library for bare metal aarch64? I can compile projects with the aarch64-unknown-none-elf but I need some of the standard library in order for integer literals and unsafe mutable pointers to work. Using utils/build-script means rebuilding the entire swift compiler, when I just want to build the stdlib for a cross compiled target. The prebuilt swift compiler from swiftlang.org/download already supports these target triples.

It seems like this should be technically possible now that embedded swift (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB) is a thing but I don't know how to build it properly :frowning:

GitHub - compnerd/uswift: μSwift[Core] looks close to what I was looking for except it lacks Array types and other major APIs that Swift requires...