mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
Merge pull request #187841 from amjoseph-nixpkgs/pr/rust/toTargetArch
build-support/rust: toTargetArch: strip off endianness
This commit is contained in:
commit
fbd067fef0
@ -5,6 +5,8 @@ rec {
|
||||
toTargetArch = platform:
|
||||
/**/ if platform ? rustc.platform then platform.rustc.platform.arch
|
||||
else if platform.isAarch32 then "arm"
|
||||
else if platform.isMips64 then "mips64" # never add "el" suffix
|
||||
else if platform.isPower64 then "powerpc64" # never add "le" suffix
|
||||
else platform.parsed.cpu.name;
|
||||
|
||||
# https://doc.rust-lang.org/reference/conditional-compilation.html#target_os
|
||||
|
Loading…
Reference in New Issue
Block a user