Add --without-snapshot configure flag to ARM devices

lukechilds 2015-06-12 23:36:02 +01:00
parent fe044c5e3b
commit 1f13f15620
1 changed files with 6 additions and 0 deletions

6
nvm.sh
View File

@ -1022,6 +1022,12 @@ nvm_install_node_source() {
local ADDITIONAL_PARAMETERS
ADDITIONAL_PARAMETERS="$2"
local NVM_ARCH
NVM_ARCH="$(nvm_get_arch)"
if [[ $NVM_ARCH = *"arm"* ]]; then
ADDITIONAL_PARAMETERS+=" --without-snapshot"
fi
if [ -n "$ADDITIONAL_PARAMETERS" ]; then
echo "Additional options while compiling: $ADDITIONAL_PARAMETERS"
fi