aboutsummaryrefslogtreecommitdiff
path: root/base/runtime
diff options
context:
space:
mode:
authorDamian Tarnawski <gthetarnav@gmail.com>2024-08-29 21:12:33 +0200
committerDamian Tarnawski <gthetarnav@gmail.com>2024-08-29 21:12:33 +0200
commita10f9880204a0e9d7b2b68afa77efe191ce62142 (patch)
tree46f2ef6a601324dbae82bd505f11ce5010c9a4d9 /base/runtime
parent39bdf4d7104d7e4ea246c7b854db4791fb5fdcc6 (diff)
Move some types to runtime, use reflection instead of lut
Diffstat (limited to 'base/runtime')
-rw-r--r--base/runtime/core.odin29
1 files changed, 29 insertions, 0 deletions
diff --git a/base/runtime/core.odin b/base/runtime/core.odin
index cc80e68a5..90e049b0c 100644
--- a/base/runtime/core.odin
+++ b/base/runtime/core.odin
@@ -546,10 +546,23 @@ Odin_OS_Type :: type_of(ODIN_OS)
arm64,
wasm32,
wasm64p32,
+ riscv64,
}
*/
Odin_Arch_Type :: type_of(ODIN_ARCH)
+Odin_Arch_Types :: bit_set[Odin_Arch_Type]
+
+ALL_ODIN_ARCH_TYPES :: Odin_Arch_Types{
+ .amd64,
+ .i386,
+ .arm32,
+ .arm64,
+ .wasm32,
+ .wasm64p32,
+ .riscv64,
+}
+
/*
// Defined internally by the compiler
Odin_Build_Mode_Type :: enum int {
@@ -573,6 +586,22 @@ Odin_Build_Mode_Type :: type_of(ODIN_BUILD_MODE)
*/
Odin_Endian_Type :: type_of(ODIN_ENDIAN)
+Odin_OS_Types :: bit_set[Odin_OS_Type]
+
+ALL_ODIN_OS_TYPES :: Odin_OS_Types{
+ .Windows,
+ .Darwin,
+ .Linux,
+ .Essence,
+ .FreeBSD,
+ .OpenBSD,
+ .NetBSD,
+ .Haiku,
+ .WASI,
+ .JS,
+ .Orca,
+ .Freestanding,
+}
/*
// Defined internally by the compiler