Skip to content

Commit

Permalink
Merge pull request #79291 from chkno/remove-isArm
Browse files Browse the repository at this point in the history
Remove isArm
  • Loading branch information
worldofpeace authored Feb 8, 2020
2 parents 4befcf4 + 5d48211 commit 1193468
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/systems/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 0 additions & 3 deletions lib/systems/inspect.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ rec {

isEfi = map (family: { cpu.family = family; })
[ "x86" "arm" "aarch64" ];

# Deprecated after 18.03
isArm = isAarch32;
};

matchAnyAttrs = patterns:
Expand Down
8 changes: 4 additions & 4 deletions pkgs/development/web/nodejs/nodejs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 0 additions & 3 deletions pkgs/stdenv/generic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1193468

Please sign in to comment.