swiftwasmis the main develop branch
masteris a mirror of the
masterbranch of the upstream
apple/masterrepository. This branch is necessary to avoid some issues
swiftwasm-release/5.3is the branch where 5.3 release of SwiftWasm is prepared.
release/5.3is a mirror of the upstream
Forked from apple/llvm-project.
swiftwasm branch is based on
swift/master branch of
Please see AppleBranchingScheme.md
Build script and patches for building ICU project for WebAssembly
We are sending patches to upstream repository.
We fork them to build
wasi-sysroot with pthread header. There aren't so many diff from upstream.
First, checkout the project source code.
$ mkdir swiftwasm-source $ cd swiftwasm-source $ git clone https://github.com/swiftwasm/swift.git $ ./swift/utils/update-checkout --scheme wasm --clone
Before building Swift, please install required dependencies.
# On macOS $ ./utils/webassembly/macos/install-dependencies.sh # On Linux $ ./utils/webassembly/linux/install-dependencies.sh
We support both Linux and macOS to build Swift.
These script wraps
./utils/build-script to simplify build options.
You can pass additional build-script options through these scripts.
# On macOS $ ./utils/webassembly/build-mac.sh -R # On Linux $ ./utils/webassembly/build-linux.sh -R
If you want to get more information about build system, please feel free to ask @kateinoigakukun on Twitter.
Compilation time of LLVM project is very long, so we recommend to cache the artifact using
When you want to debug a WebAssembly binary, wasminspect is very helpful to investigate.