mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
swift: use aarch64
instead of arm64
on Linux (#404263)
This commit is contained in:
commit
d8c42f6f2f
1 changed files with 5 additions and 1 deletions
|
@ -72,7 +72,11 @@ let
|
|||
else
|
||||
targetPlatform.parsed.kernel.name;
|
||||
|
||||
swiftArch = stdenv.hostPlatform.darwinArch;
|
||||
# This causes swiftPackages.XCTest to fail to build on aarch64-linux
|
||||
# as I believe this is because Apple calls the architecture aarch64
|
||||
# on Linux rather than arm64 when used with macOS.
|
||||
swiftArch =
|
||||
if hostPlatform.isDarwin then hostPlatform.darwinArch else targetPlatform.parsed.cpu.name;
|
||||
|
||||
# On Darwin, a `.swiftmodule` is a subdirectory in `lib/swift/<OS>`,
|
||||
# containing binaries for supported archs. On other platforms, binaries are
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue