It's trying to build the runtime for x86_64; if you're using --swift-darwin-supported-archs "$(uname -m)"
, that should normally build the code for arm64 and skip x86_64. Maybe the build is happening under Rosetta 2? You may want to check out this thread and see if that resolves your issue.
2 Likes