We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
aarch64
arm64
1 parent 7a2622e commit e3895daCopy full SHA for e3895da
pkgs/development/compilers/swift/compiler/default.nix
@@ -72,7 +72,11 @@ let
72
else
73
targetPlatform.parsed.kernel.name;
74
75
- swiftArch = stdenv.hostPlatform.darwinArch;
+ # 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
0 commit comments