commit
1193468f13
@ -84,7 +84,7 @@ rec {
|
||||
else final.parsed.cpu.name;
|
||||
|
||||
qemuArch =
|
||||
if final.isArm then "arm"
|
||||
if final.isAarch32 then "arm"
|
||||
else if final.isx86_64 then "x86_64"
|
||||
else if final.isx86 then "i386"
|
||||
else {
|
||||
|
@ -55,9 +55,6 @@ rec {
|
||||
|
||||
isEfi = map (family: { cpu.family = family; })
|
||||
[ "x86" "arm" "aarch64" ];
|
||||
|
||||
# Deprecated after 18.03
|
||||
isArm = isAarch32;
|
||||
};
|
||||
|
||||
matchAnyAttrs = patterns:
|
||||
|
@ -61,18 +61,18 @@ in
|
||||
configureFlags = let
|
||||
isCross = stdenv.hostPlatform != stdenv.buildPlatform;
|
||||
host = stdenv.hostPlatform.platform;
|
||||
isArm = stdenv.hostPlatform.isArm;
|
||||
isAarch32 = stdenv.hostPlatform.isAarch32;
|
||||
in sharedConfigureFlags ++ [
|
||||
"--without-dtrace"
|
||||
] ++ (optionals isCross [
|
||||
"--cross-compiling"
|
||||
"--without-intl"
|
||||
"--without-snapshot"
|
||||
]) ++ (optionals (isCross && isArm && hasAttr "fpu" host.gcc) [
|
||||
]) ++ (optionals (isCross && isAarch32 && hasAttr "fpu" host.gcc) [
|
||||
"--with-arm-fpu=${host.gcc.fpu}"
|
||||
]) ++ (optionals (isCross && isArm && hasAttr "float-abi" host.gcc) [
|
||||
]) ++ (optionals (isCross && isAarch32 && hasAttr "float-abi" host.gcc) [
|
||||
"--with-arm-float-abi=${host.gcc.float-abi}"
|
||||
]) ++ (optionals (isCross && isArm) [
|
||||
]) ++ (optionals (isCross && isAarch32) [
|
||||
"--dest-cpu=arm"
|
||||
]) ++ extraConfigFlags;
|
||||
|
||||
|
@ -137,9 +137,6 @@ let
|
||||
isi686 isx86_32 isx86_64
|
||||
is32bit is64bit
|
||||
isAarch32 isAarch64 isMips isBigEndian;
|
||||
isArm = lib.warn
|
||||
"`stdenv.isArm` is deprecated after 18.03. Please use `stdenv.isAarch32` instead"
|
||||
hostPlatform.isAarch32;
|
||||
|
||||
# The derivation's `system` is `buildPlatform.system`.
|
||||
inherit (buildPlatform) system;
|
||||
|
Loading…
Reference in New Issue
Block a user