diff --git a/buildtools/mimalloc/Dockerfile b/buildtools/mimalloc/Dockerfile index 5a652c0ae846a..95b1f58ed5dd0 100644 --- a/buildtools/mimalloc/Dockerfile +++ b/buildtools/mimalloc/Dockerfile @@ -9,6 +9,6 @@ RUN mkdir -p /mimalloc && curl -L https://github.com/microsoft/mimalloc/archive/ WORKDIR /mimalloc ADD mimalloc.patch mimalloc.patch RUN patch -p1 < mimalloc.patch -RUN mkdir -p out/release && cd out/release && cmake ../.. -DMI_BUILD_SHARED=off -DMI_BUILD_TESTS=off && make && llvm-ranlib-14 libmimalloc.a +RUN mkdir -p out/release && cd out/release && cmake ../.. -DMI_BUILD_SHARED=off -DMI_BUILD_TESTS=off && make && ${RANLIB} libmimalloc.a CMD ["cp", "./out/release/libmimalloc.a", "/out/libmimalloc.a"] \ No newline at end of file diff --git a/lib/libmimalloc.a b/lib/libmimalloc.a index 6cd0193f6cc18..1ae1c7a153e88 100644 Binary files a/lib/libmimalloc.a and b/lib/libmimalloc.a differ diff --git a/magefile.go b/magefile.go index 15488a6ec2fda..c74a3f026a5c1 100644 --- a/magefile.go +++ b/magefile.go @@ -206,7 +206,7 @@ tinygo build -gc=none -opt=2 -o %s -scheduler=none -target=wasi %s`, filepath.Jo // UpdateLibs updates the C++ filter dependencies. func UpdateLibs() error { - libs := []string{"aho-corasick", "libinjection", "re2"} + libs := []string{"aho-corasick", "libinjection", "mimalloc", "re2"} for _, lib := range libs { if err := sh.RunV("docker", "build", "-t", "ghcr.io/corazawaf/coraza-proxy-wasm/buildtools-"+lib, filepath.Join("buildtools", lib)); err != nil { return err