Also, --platform linux/amd64 sadly doesn't seem to work reliably for more complex use cases (building an image with swift-package-collection-generator):
#10 94.89 Creating working copy for https://github.com/apple/swift-argument-parser.git
#10 95.55 Working copy of https://github.com/apple/swift-argument-parser.git resolved at 0.4.4
#10 95.61 Creating working copy for https://github.com/apple/swift-crypto.git
#10 96.48 Working copy of https://github.com/apple/swift-crypto.git resolved at 1.1.6
#10 96.54 Creating working copy for https://github.com/swift-server/swift-backtrace.git
#10 97.18 Working copy of https://github.com/swift-server/swift-backtrace.git resolved at 1.3.1
#10 112.5 qemu: uncaught target signal 4 (Illegal instruction) - core dumped
#10 112.5 Illegal instruction
------
executor failed running [/bin/sh -c swift build -c release]: exit code: 132