swift: use `aarch64` instead of `arm64` on Linux (#404263)

authored by Jörg Thalheim and committed by GitHub d8c42f6f c1f224f5

+5 -1
+5 -1
pkgs/development/compilers/swift/compiler/default.nix
··· 72 else 73 targetPlatform.parsed.kernel.name; 74 75 - swiftArch = stdenv.hostPlatform.darwinArch; 76 77 # On Darwin, a `.swiftmodule` is a subdirectory in `lib/swift/<OS>`, 78 # containing binaries for supported archs. On other platforms, binaries are
··· 72 else 73 targetPlatform.parsed.kernel.name; 74 75 + # This causes swiftPackages.XCTest to fail to build on aarch64-linux 76 + # as I believe this is because Apple calls the architecture aarch64 77 + # on Linux rather than arm64 when used with macOS. 78 + swiftArch = 79 + if hostPlatform.isDarwin then hostPlatform.darwinArch else targetPlatform.parsed.cpu.name; 80 81 # On Darwin, a `.swiftmodule` is a subdirectory in `lib/swift/<OS>`, 82 # containing binaries for supported archs. On other platforms, binaries are