From 7fe8d7b25b383379fc73436bde7bccb4ea8c0446 Mon Sep 17 00:00:00 2001 From: Cydox Date: Sat, 10 Jan 2015 23:32:40 +0100 Subject: [PATCH] build: Warn when using snapshot on Armv6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Building io.js on armv6 with snapshot enabled does not work due to a bug in v8, so it now warns when building on armv6 and having snapshot enabled. I found this problem while trying to build io.js on my Raspberry Pi. With snapshot disabled v8 and all of the code compiles , but still when testing io.js I get an 'illegal instruction' error. I´ll open an issue for that. --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 1d91f216e52a0c..9d15e3cc0a866d 100755 --- a/configure +++ b/configure @@ -954,4 +954,8 @@ else: gyp_args += args +#print warning when snapshot is enabled and building on armv6 +if (is_arch_armv6()) and (not options.without_snapshot): + print '\033[1;33mWarning!! When building on ARMv6 use --without-snapshot\033[1;m' + sys.exit(subprocess.call(gyp_args))