#!/usr/bin/env bash # This script assumes that all the right environment variables # (CC, LD, STRIP, ...) areset. set -eu -o pipefail scriptdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" cd $scriptdir/.. export GYP_DEFINES="target_arch=$DEST_CPU_ARCH host_os=mac target_os=ios" function myconf() { ./configure \ --cross-compiling \ --dest-cpu=$DEST_CPU_ARCH \ --dest-os=ios \ --without-intl \ --openssl-no-asm \ --v8-options=--jitless \ --enable-static \ --without-node-code-cache \ --without-node-snapshot } myconf && make