From 28bacc2093a43c21f34a192397d2b2561a9fd29d Mon Sep 17 00:00:00 2001 From: John Ericson Date: Fri, 11 May 2018 17:35:56 -0400 Subject: [PATCH] lib/systems: Add assertion to "android" ABI This is analogous to the GNU assertion. --- lib/systems/parse.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix index 02ca3a6b3614..3dba5ad46984 100644 --- a/lib/systems/parse.nix +++ b/lib/systems/parse.nix @@ -199,8 +199,16 @@ rec { msvc = {}; eabi = {}; - androideabi = {}; - android = {}; + androideabi = { float = "hard"; }; + android = { + assertions = [ + { assertion = platform: !platform.isAarch32; + message = '' + The "android" ABI is not for 32-bit ARM. Use "androideabi" instead. + ''; + } + ]; + }; gnueabi = { float = "soft"; }; gnueabihf = { float = "hard"; };