export npm_config_target_arch instead of npm_config_arch on arm64

This commit is contained in:
JL2210 2018-11-05 10:32:51 -05:00
parent 31ad142664
commit 7b764d5c5b
2 changed files with 3 additions and 0 deletions

View file

@ -6,10 +6,12 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
if [[ "$BUILDARCH" == "ia32" ]]; then
export npm_config_arch=ia32
export npm_config_target_arch=ia32
fi
if [[ "$BUILDARCH" == "arm64" ]]; then
export npm_config_arch=arm64
export npm_config_target_arch=arm64
fi
../update_settings.sh

View file

@ -17,6 +17,7 @@ else
export CC_host=/usr/bin/gcc
export CXX_host=/usr/bin/g++
elif [[ $BUILDARCH == "arm64" ]]; then
echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty main" | sudo tee -a /etc/apt/sources.list.d/arm64.list >/dev/null
sudo dpkg --add-architecture arm64
sudo apt-get update
sudo apt-get install libc6-dev-arm64-cross gcc-aarch64-linux-gnu g++-aarch64-linux-gnu