Building the compiler with different branches make different arches

Here is the thing, my computer is m1, if I use branch main to build the compiler, the product is arm64 arch (swift-macosx-arm64), if I use branch release/5.6, the product is x86_64 (swift-macosx-x86_64), and I can't find what causes this result.