diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2018-05-09 18:50:51 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2018-05-10 15:05:23 -0400 |
commit | 58b2e875c212f10129a2320f38f03988dee13bed (patch) | |
tree | 52aba60b8852e7574695dba2c69c3cbca9e20d74 /lib/systems/default.nix | |
parent | 4ae207aea0164caee9c39b24177692ab4ef4dab4 (diff) | |
download | nixlib-58b2e875c212f10129a2320f38f03988dee13bed.tar nixlib-58b2e875c212f10129a2320f38f03988dee13bed.tar.gz nixlib-58b2e875c212f10129a2320f38f03988dee13bed.tar.bz2 nixlib-58b2e875c212f10129a2320f38f03988dee13bed.tar.lz nixlib-58b2e875c212f10129a2320f38f03988dee13bed.tar.xz nixlib-58b2e875c212f10129a2320f38f03988dee13bed.tar.zst nixlib-58b2e875c212f10129a2320f38f03988dee13bed.zip |
lib/systems: Prohibit "gnu" ABI (*-gnu) with 32-bit ARM
It is ambiguous, and therefore banned within GCC.
Diffstat (limited to 'lib/systems/default.nix')
-rw-r--r-- | lib/systems/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix index 0e1a10c1f64b..ee4c29660a55 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -50,5 +50,12 @@ rec { } // mapAttrs (n: v: v final.parsed) inspect.predicates // args; in assert final.useAndroidPrebuilt -> final.isAndroid; + assert lib.foldl + (pass: { assertion, message }: + if assertion final + then pass + else throw message) + true + (final.parsed.abi.assertions or []); final; } |