This repository contains the scripts used to precompile native libraries used by the Fyrlang compiler.
For each library there is a make
target.
To build a library, simply run make <library>
.
Running make
without arguments will build all supported libraries
These libraries are currently supported:
jemalloc
: The jemalloc memory allocator, originally written for FreeBSDtcmalloc
: Memory allocator included in gperftools by Googlemimalloc
: mimalloc by Daan Leijen and Microsoftrpmalloc
: rpmalloc by Mattias Jansson
The scripts in this repository only need make
and python3
.
Your system needs to also provide the required utilities for the libraries to succeed.
Please be aware that this list might change and is not guaranteed to be exhaustive:
- jemalloc:
gcc
- tcmalloc:
g++
- mimalloc:
gcc
,cmake
- rpmalloc:
clang
,ninja
As long as the build process for a library does not change, updating it is as simple as editing the VERSION
variable in its corresponding script.
The script files in this repository are provided with the included license. The compiled libraries are subject to the licenses in their respective folders.