Disable nodejs Snapshot feature for ARM platforms

Snapshot is a V8 feature that allows node to start faster, but there
seems to be a bug on ARM platforms leading to a segmentation fault
at startup.

Closes #1337, #1366
This commit is contained in:
Stan Hu 2016-07-02 05:46:28 -07:00
parent 5e1eaccba1
commit f9a7b4bf13
1 changed files with 7 additions and 1 deletions

View File

@ -38,8 +38,14 @@ relative_path "node-v#{version}"
build do
env = with_standard_compiler_flags(with_embedded_path)
args = if ohai['kernel']['machine'].start_with?('arm')
'--without-snapshot'
else
''
end
command "#{install_dir}/embedded/bin/python ./configure" \
" --prefix=#{install_dir}/embedded", env: env
" --prefix=#{install_dir}/embedded #{args}", env: env
make "-j #{workers}", env: env
make "install", env: env