Follow the instructions to checkout a full Swift build for Linux:
git clone https://github.com/apple/swift.git
cd swift
./utils/update-checkout --clone
Update the libdispatch component to use the 'experimental/foundation' branch:
cd swift-corelibs-libdispatch