@ -184,39 +184,6 @@ stdenv.mkDerivation {
done
'' ;
emulation = let
fmt =
/* */ if targetPlatform . isDarwin then " m a c h - o "
else if targetPlatform . isWindows then " p e "
else " e l f " + toString targetPlatform . parsed . cpu . bits ;
endianPrefix = if targetPlatform . isBigEndian then " b i g " else " l i t t l e " ;
sep = optionalString ( ! targetPlatform . isMips && ! targetPlatform . isPower && ! targetPlatform . isRiscV ) " - " ;
arch =
/* */ if targetPlatform . isAarch64 then endianPrefix + " a a r c h 6 4 "
else if targetPlatform . isAarch32 then endianPrefix + " a r m "
else if targetPlatform . isx86_64 then " x 8 6 - 6 4 "
else if targetPlatform . isx86_32 then " i 3 8 6 "
else if targetPlatform . isMips then {
mips = " b t s m i p n 3 2 " ; # n32 variant
mipsel = " l t s m i p n 3 2 " ; # n32 variant
mips64 = " b t s m i p " ;
mips64el = " l t s m i p " ;
} . ${ targetPlatform . parsed . cpu . name }
else if targetPlatform . isMmix then " m m i x "
else if targetPlatform . isPower then if targetPlatform . isBigEndian then " p p c " else " l p p c "
else if targetPlatform . isSparc then " s p a r c "
else if targetPlatform . isMsp430 then " m s p 4 3 0 "
else if targetPlatform . isAvr then " a v r "
else if targetPlatform . isAlpha then " a l p h a "
else if targetPlatform . isVc4 then " v c 4 "
else if targetPlatform . isOr1k then " o r 1 k "
else if targetPlatform . isM68k then " m 6 8 k "
else if targetPlatform . isS390 then " s 3 9 0 "
else if targetPlatform . isRiscV then " l r i s c v "
else throw " u n k n o w n e m u l a t i o n f o r p l a t f o r m : ${ targetPlatform . config } " ;
in if targetPlatform . useLLVM or false then " "
else targetPlatform . bfdEmulation or ( fmt + sep + arch ) ;
strictDeps = true ;
depsTargetTargetPropagated = extraPackages ;