mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 14:51:49 +00:00
Add --without-snapshot configure flag to ARM devices
This commit is contained in:
parent
fe044c5e3b
commit
1f13f15620
6
nvm.sh
6
nvm.sh
@ -1022,6 +1022,12 @@ nvm_install_node_source() {
|
|||||||
local ADDITIONAL_PARAMETERS
|
local ADDITIONAL_PARAMETERS
|
||||||
ADDITIONAL_PARAMETERS="$2"
|
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
|
if [ -n "$ADDITIONAL_PARAMETERS" ]; then
|
||||||
echo "Additional options while compiling: $ADDITIONAL_PARAMETERS"
|
echo "Additional options while compiling: $ADDITIONAL_PARAMETERS"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user