canExecute
lib.systems.architectures.canExecute
Docs pulled from | This Revision | about 1 hour ago
Check whether one GCC architecture can execute the other.
Inputs
arch1
- GCC architecture in string
arch2
- GCC architecture in string
Type
canExecute :: string -> string -> bool
Examples
::: {.example}
lib.systems.architectures.canExecute
usage example
canExecute "x86-64" "x86-64-v3"
=> false
canExecute "x86-64-v3" "x86-64"
=> true
canExecute "x86-64" "x86-64"
=> true
Noogle detected
Implementation
The following is the current implementation of this function.
canExecute = arch1: arch2: arch1 == arch2 || hasInferior arch1 arch2;