diff options
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 0cd234a75..9a8f065ff 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -558,6 +558,9 @@ void init_universal(void) { add_global_entity(alloc_entity_nil(str_lit("nil"), t_untyped_nil)); // TODO(bill): Set through flags in the compiler + add_global_string_constant(str_lit("ODIN_OS"), bc->ODIN_OS); + add_global_string_constant(str_lit("ODIN_ARCH"), bc->ODIN_ARCH); + add_global_string_constant(str_lit("ODIN_ENDIAN"), bc->ODIN_ENDIAN); add_global_string_constant(str_lit("ODIN_VENDOR"), bc->ODIN_VENDOR); add_global_string_constant(str_lit("ODIN_VERSION"), bc->ODIN_VERSION); add_global_string_constant(str_lit("ODIN_ROOT"), bc->ODIN_ROOT); |