Move some types to runtime, use reflection instead of lut

This commit is contained in:
Damian Tarnawski
2024-08-29 21:12:33 +02:00
parent 39bdf4d710
commit a10f988020
3 changed files with 56 additions and 79 deletions
+8 -8
View File
@@ -33,14 +33,14 @@ package main
`,
tags = {
build = {
{os = {.Linux}, arch = parser.ALL_ODIN_ARCH_TYPES},
{os = {.Darwin}, arch = parser.ALL_ODIN_ARCH_TYPES},
{os = {.FreeBSD}, arch = parser.ALL_ODIN_ARCH_TYPES},
{os = {.OpenBSD}, arch = parser.ALL_ODIN_ARCH_TYPES},
{os = {.NetBSD}, arch = parser.ALL_ODIN_ARCH_TYPES},
{os = {.Haiku}, arch = parser.ALL_ODIN_ARCH_TYPES},
{os = parser.ALL_ODIN_OS_TYPES, arch = {.arm32}},
{os = parser.ALL_ODIN_OS_TYPES, arch = {.arm64}},
{os = {.Linux}, arch = runtime.ALL_ODIN_ARCH_TYPES},
{os = {.Darwin}, arch = runtime.ALL_ODIN_ARCH_TYPES},
{os = {.FreeBSD}, arch = runtime.ALL_ODIN_ARCH_TYPES},
{os = {.OpenBSD}, arch = runtime.ALL_ODIN_ARCH_TYPES},
{os = {.NetBSD}, arch = runtime.ALL_ODIN_ARCH_TYPES},
{os = {.Haiku}, arch = runtime.ALL_ODIN_ARCH_TYPES},
{os = runtime.ALL_ODIN_OS_TYPES, arch = {.arm32}},
{os = runtime.ALL_ODIN_OS_TYPES, arch = {.arm64}},
},
},
}, {// [3]