PKGNAME=mimalloc
PKGDES="A high-performance general purpose allocator"
PKGSEC=libs
PKGDEP="glibc"

# Default behavior (-DMI_INSTALL_TOPLEVEL=OFF) puts libraries inside a 
# sub-directory in /usr/lib, which will cause unnecessary rebuilds on update.
# Use -DMI_INSTALL_TOPLEVEL=ON to install libraries in /usr/lib.
# Building static libraries will put the static libraries in the generated
# cmake files, which will break when we strip them off. Use -DMI_BUILD_STATIC=OFF
# to turn it off.
# Building object file will put the object file in /usr/lib which
# is unnecessary. Use -DMI_BUILD_OBJECT=OFF to turn it off.
ABTYPE=cmakeninja
CMAKE_AFTER=(
    '-DMI_INSTALL_TOPLEVEL=ON'
    '-DMI_BUILD_STATIC=OFF'
    '-DMI_BUILD_OBJECT=OFF'
    '-DMI_BUILD_TESTS=OFF'
)

PKGBREAK="mold<=2.40.4"
