xref: /netbsd-src/external/bsd/jemalloc/dist/scripts/freebsd/before_script.sh (revision 32d1c65c71fbdb65a012e8392a62a757dd6853e9)
1#!/bin/tcsh
2
3autoconf
4# We don't perfectly track freebsd stdlib.h definitions.  This is fine when
5# we count as a system header, but breaks otherwise, like during these
6# tests.
7./configure --with-jemalloc-prefix=ci_ ${COMPILER_FLAGS:+ CC="$CC $COMPILER_FLAGS" CXX="$CXX $COMPILER_FLAGS"} $CONFIGURE_FLAGS
8JE_NCPUS=`sysctl -n kern.smp.cpus`
9gmake -j${JE_NCPUS}
10gmake -j${JE_NCPUS} tests
11