Hacker News new | ask | show | jobs
by bogidan 639 days ago
The download sizes are quite large. 775 MB for swift-6.0-RELEASE-ubuntu22.04.tar.gz ~500MB for windows.

Is this shipping an entire copy of LLVM? What could possibly make this so large?

2 comments

Yeah, they contain binaries for Swift itself (the driver interface, the compiler, the repl, the package manager, swift-format, etc.), as well as the toolchain's dependencies (llvm, lldb, clang, the sanitizer runtimes, etc.).

There are other (also large) downloads to enable producing static binaries on Linux, and those contain the required system libraries (musl libc, libicu, libcrypto, libpthread, etc.). Those are about twice as big as they need to be, because they bundle x86 and aarch64 together.

Cross-target toolchain support for shipping for all platforms from any platform? (Not sure that's in there, but if it were, it'd be large.)