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:
parent
5e1eaccba1
commit
f9a7b4bf13
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue