Sha256: e54efee4f8c8a64ce75f9e9971a03b128814e8e6c0d76061c02f07303eb6edfa

Contents?: true

Size: 1.32 KB

Versions: 10

Compression:

Stored size: 1.32 KB

Contents

#!/bin/sh

set -e
set -u

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

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

echo "parallel job count: ${NJOBS}"

BUILDTYPE="${BUILDTYPE:-Release}"

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

configure_flags='--openssl-no-asm --without-npm --shared --with-intl=full-icu'
eval "$("${libexec}/platform")"

echo "configure: ${configure_flags}"
echo "compilers: CC='${CC}' CXX='${CXX}' CC_host='${CC_host:-}' CXX_host='${CXX_host:-}'"

${CC} -v
${CXX} -v

# shellcheck disable=SC2086
./configure ${configure_flags}

make BUILDTYPE="${BUILDTYPE}" config.gypi
make BUILDTYPE="${BUILDTYPE}" "out/Makefile"

# workaround for node specifying `-msign-return-address=all` in ALL `CFLAGS` for aarch64 builds
# (if the host isn't also aarch64, this flag causes a compiler error)

# shellcheck disable=SC2154 # these variables are defined by `eval`ing the output of the platform script above
if [ "$host_platform" != "$target_platform" ] && [ "${target_platform%%-*}" = "aarch64"  ]; then
	find . -iname "*.host.mk" -exec sed -i '/-msign-return-address/d' {} ';'
fi

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
libv8-node-22.7.0.2 libexec/build-libv8
libv8-node-22.7.0.1 libexec/build-libv8
libv8-node-22.5.1.0 libexec/build-libv8
libv8-node-21.7.2.0 libexec/build-libv8
libv8-node-20.12.1.0 libexec/build-libv8
libv8-node-18.16.0.0 libexec/build-libv8
libv8-node-20.2.0.0 libexec/build-libv8
libv8-node-19.9.0.0 libexec/build-libv8
libv8-node-18.13.0.1 libexec/build-libv8
libv8-node-17.9.1.1 libexec/build-libv8