vnmakarov / mir

A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR
MIT License
2.29k stars 145 forks source link

Fix build failures introduced by custom allocators #414

Closed ningvin closed 3 weeks ago

ningvin commented 1 month ago

This includes llvm2mir which does not seem to have been built on my Windows machine, as well as some missing includes that became apparent on Linux. Sorry for missing these, building only on Windows was not the best idea!

When running the tests on my Linux machine, unlike on Windows, gen-test11 is failing due to an assert in mir-gen.c:7969: n == 2. I cannot directly see a connection to my change however...

Edit: can confirm, gen-test11 fails on my Linux machine even on d6dffefccb00a51010f8bc9a6e4e871a1a61bc41 (before the allocator commit).

ningvin commented 3 weeks ago

Already fixed upstream, closing