diff options
| author | gingerBill <bill@gingerbill.org> | 2018-10-29 12:52:41 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-10-29 12:52:41 +0000 |
| commit | 7c99884afb90370e79429fd9b719482dd416acf5 (patch) | |
| tree | 7912a67007540c08913d6dae06ce47259c8f9a75 /src/checker.cpp | |
| parent | dfd7a194ed042083db93826b7fbc88d43290ed05 (diff) | |
Fix CompositeType for zero length arrays
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); |