terralang / terra

Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language.
terralang.org
Other
2.72k stars 201 forks source link

Fix for type cache initialization on PPC64le #579

Closed elliottslaughter closed 2 years ago

elliottslaughter commented 2 years ago

Terra seems to rely on this code path being executed to initialize some type cache machinery. This currently happens only on platforms where debug info is enabled (i.e., x86 only). Therefore on PPC64le, this initialization does not happen, leading to errors down the line.

For now, make sure that initialization is in place so that we don't depend on the user doing terralib.cast(uint64, 1ULL) or similar to make their programs work.

elliottslaughter commented 2 years ago

With this PR, I have the following set of failing tests:

=================
= FAILING tests
=================
coverage3.t
multiterra.t
vecobj.t
=================

546 tests passed. 3 tests failed.