Skip to content
Myr

Merge pull request #766 from lukechilds/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add --without-snapshot configure flag to ARM devices by default

authored by Jordan Harband · committed by Jordan Harband · parents fe044c5, c1ef31d · Browse files · 2 files+31 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+31 added−0 removed

  • tests:+25 added−0 removed
  • other:+6 added−0 removed

2 files+31 added−0 removed

added:test/installation/node/install from source without V8 snapshot for ARM+25 added
1#!/bin/sh23die () { echo $@ ; exit 1; }45. ../../../nvm.sh67NVM_TEST_VERSION=v0.10.789# Remove the stuff we're clobbering.10[ -e ../../../$NVM_TEST_VERSION ] && rm -R ../../../$NVM_TEST_VERSION1112# Fake ARM arch13nvm_get_arch() {14 echo "armv7l"15}1617# Install from source18nvm install -s $NVM_TEST_VERSION || die "'nvm install -s $NVM_TEST_VERSION' failed"1920# Check Install21[ -d ../../../$NVM_TEST_VERSION ]22node --version | grep $NVM_TEST_VERSION || "'node --version | grep $NVM_TEST_VERSION' failed"2324# Check V8 snapshot isn't compiled25node -p "if(! process.config.variables.v8_use_snapshot) { console.log('no-snapshot'); }" | grep "no-snapshot" || "'node -p \"if(! process.config.variables.v8_use_snapshot) { console.log('no-snapshot'); }\" | grep \"no-snapshot\"' failed"
modified:nvm.sh+6 added
1020 unmodified lines
1021 VERSION="$1"1022 local ADDITIONAL_PARAMETERS1023 ADDITIONAL_PARAMETERS="$2"10241025 local NVM_ARCH1026 NVM_ARCH="$(nvm_get_arch)"1027 if [ $NVM_ARCH = "armv6l" ] || [ $NVM_ARCH = "armv7l" ]; then1028 ADDITIONAL_PARAMETERS="--without-snapshot $ADDITIONAL_PARAMETERS"1029 fi10301031 if [ -n "$ADDITIONAL_PARAMETERS" ]; then1032 echo "Additional options while compiling: $ADDITIONAL_PARAMETERS"1033 fi1034
769 unmodified lines