contextgarden / luametatex

Temporary/draft repository with luametatex
31 stars 7 forks source link

Using stock mimalloc? #13

Open hpreusse opened 4 months ago

hpreusse commented 4 months ago

The source/libraries/readme.txt says:

In mimalloc we need to patch init.c: #if defined(_M_X64) || defined(_M_ARM64) to get rid of a link
error as well as in options.c some snprint issue with the mingw64 cross compiler: 

/* HH */ snprintf(tprefix, sizeof(tprefix), "%sthread 0x%x: ", prefix, (unsigned) _mi_thread_id()); /* HH: %z is unknown */

When comparing the included source code of mimalloc with the original code it seem, you use an unmodified version of mimalloc, so I could dynamically link with mimalloc, instead of using the included version.

Would be nice if you could update the readme, if my assumption is correct. Thanks!

hanshagen commented 4 months ago

I'll check it but keep in mind that we assume static compiled binaries.