From ec7643047c2ea1595a18ce6436ff6bebf057ac10 Mon Sep 17 00:00:00 2001 From: Ken Micklas Date: Tue, 16 Apr 2019 16:21:51 -0400 Subject: androidndk-pkgs: Remove -mfloat flag --- lib/systems/platforms.nix | 1 - 1 file changed, 1 deletion(-) (limited to 'lib') diff --git a/lib/systems/platforms.nix b/lib/systems/platforms.nix index 92de30162666..a2b43c970a41 100644 --- a/lib/systems/platforms.nix +++ b/lib/systems/platforms.nix @@ -258,7 +258,6 @@ rec { name = "armeabi-v7a"; gcc = { arch = "armv7-a"; - float = "hard"; float-abi = "softfp"; fpu = "vfpv3-d16"; }; -- cgit v1.2.3 From 7ed977e60d594929f290d5b31586c08ae674c695 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 17 Apr 2019 15:55:57 +0100 Subject: lib.converge: optimise --- lib/fixed-points.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/fixed-points.nix b/lib/fixed-points.nix index 2f818c88de5d..968930526a63 100644 --- a/lib/fixed-points.nix +++ b/lib/fixed-points.nix @@ -30,9 +30,12 @@ rec { # nix-repl> converge (x: x / 2) 16 # 0 converge = f: x: - if (f x) == x - then x - else converge f (f x); + let + x' = f x; + in + if x' == x + then x + else converge f x'; # Modify the contents of an explicitly recursive attribute set in a way that # honors `self`-references. This is accomplished with a function -- cgit v1.2.3