fix(libhectic): arena allocators

This commit is contained in:
2025-03-21 02:54:47 +00:00
parent 4f2391e9b5
commit 9438280750
7 changed files with 78 additions and 99 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, gcc, lib, libhectic }:
{ stdenv, gcc, lib, libhectic, cjson }:
stdenv.mkDerivation {
pname = "hmpl";
@@ -6,13 +6,13 @@ stdenv.mkDerivation {
src = ./.;
doCheck = true;
buildInputs = [ libhectic ];
buildInputs = [ libhectic cjson ];
buildPhase = ''
mkdir -p target
${gcc}/bin/cc -Wall -Wextra -g \
-pedantic -fsanitize=address hmpl.c \
-l:libhectic.a -o target/hmpl
-l:libhectic.a -l:cjson -o target/hmpl
'';
checkPhase = '' '';