mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 14:35:45 +00:00
refactor(providers): declare architecture admission exhaustively (#12166)
This commit is contained in:
1 parent
0aee26def4
commit
0f6bc14e32
5 files changed
+88
-73
No files matched your search
@@ -61,12 +61,6 @@ export const ELF_METADATA_ARCHITECTURES = [
|
||||
export type ElfMetadataArchitecture =
|
||||
(typeof ELF_METADATA_ARCHITECTURES)[number];
|
||||
|
||||
/** Families whose ISA and ABI need a separate ELF declaration to be admitted. */
|
||||
export const isElfMetadataArchitecture = (
|
||||
architecture: BinaryArchitecture,
|
||||
): architecture is ElfMetadataArchitecture =>
|
||||
(ELF_METADATA_ARCHITECTURES as readonly string[]).includes(architecture);
|
||||
|
||||
/** Families that require a specialized target variant instead of generic headers. */
|
||||
export const HEADER_ARCHITECTURE_EXCLUSIONS = [
|
||||
...ELF_METADATA_ARCHITECTURES,
|
||||
|
||||
Reference in new issue
Block a user