Sha256: f45e9f5adf944bebe76a53d5f522f53bd772a1cf1b11c62201cdb1319806ce65

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

Contents

#!/bin/sh

set -e
set -u

version="${1}"
libexec="$(cd "$(dirname "$0")"; pwd)"
top="${libexec}/.."
src="${2:-"${top}/src"}"

platform=$(uname)

NJOBS="${NJOBS:-$(getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || true)}"
NJOBS="${NJOBS:-1}"

echo "parallel job count: ${NJOBS}"

cd "${src}/node-v${version}"

if command -v python3 >/dev/null 2>&1; then
    PYTHON="${PYTHON:-python3}"
else
    PYTHON="${PYTHON:-python2}"
fi

case "${platform}" in
    SunOS)
        export CC="${CC:-/opt/local/gcc7/bin/gcc}"
        export CXX="${CXX:-/opt/local/gcc7/bin/g++}"
        ;;
    *)
        if cc --version | grep 4.9 >/dev/null; then
            export CC="${CC:-clang}"
            export CXX="${CXX:-clang++}"
        fi
        ;;
esac

case "$(uname -m)" in
    armv7l)
        enable_pointer_compression=""
        ;;
    *)
        enable_pointer_compression="--experimental-enable-pointer-compression"
        ;;
esac

"${PYTHON}" configure --openssl-no-asm --without-npm --shared --with-intl=small-icu ${enable_pointer_compression}
make BUILDTYPE=Release config.gypi
make BUILDTYPE=Release out/Makefile

export PATH="${PWD}/out/tools/bin:${PATH}"
make -j"${NJOBS}" -C out BUILDTYPE=Release V=0 libv8_monolith

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aha-libv8-node-16.0.0.0 libexec/build-libv8