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
2 parents c1f224f + e3895da commit d8c42f6Copy full SHA for d8c42f6
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