query
On this page

hasInferior

lib.systems.architectures.hasInferior

Docs pulled from | This Revision | about 1 hour ago


Check whether one GCC architecture has the the other inferior architecture.

Inputs

arch1
GCC architecture in string
arch2
GCC architecture in string

Type

hasInferior :: string -> string -> bool

Examples

::: {.example}

lib.systems.architectures.hasInferior usage example

hasInferior "x86-64-v3" "x86-64"
=> true
hasInferior "x86-64" "x86-64-v3"
=> false
hasInferior "x86-64" "x86-64"
=> false

Noogle detected

Implementation

The following is the current implementation of this function.

hasInferior = arch1: arch2: inferiors ? ${arch1} && lib.elem arch2 inferiors.${arch1};