pantry/projects/jemalloc.net/package.yml

36 lines
935 B
YAML
Raw Permalink Normal View History

distributable:
url: https://github.com/jemalloc/jemalloc/releases/download/{{version}}/jemalloc-{{version}}.tar.bz2
strip-components: 1
versions:
github: jemalloc/jemalloc
build:
dependencies:
gnu.org/autoconf: '*'
docbook.org: '*'
2024-05-15 23:59:43 +03:00
script:
- ./configure $ARGS
- make --jobs {{ hw.concurrency }}
- make install
- run: |
mv jemalloc/* .
rmdir jemalloc
ln -s . jemalloc
working-directory: ${{prefix}}/include
# jemalloc has a long-running issue on clang
# https://github.com/jemalloc/jemalloc/issues/1557
- run: sed -i 's/defined(JEMALLOC_USE_CXX_THROW)/defined(JEMALLOC_USE_CXX_THROW) \&\& \!defined(__clang__)/g' jemalloc.h
working-directory: ${{prefix}}/include
if: linux
env:
ARGS:
- --prefix="{{prefix}}"
- --disable-debug
- --with-jemalloc-prefix=
test:
2024-05-15 23:59:43 +03:00
- cc test.c -L {{prefix}}/lib -ljemalloc -o test
- ./test