From e9898e1e6e646ab75365ff5d624639f5737425ef Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 17 Jun 2015 04:54:35 +0000 Subject: [PATCH] Cross compile for arm target --- script/update | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/update b/script/update index 93028c5d..fae6a1ef 100755 --- a/script/update +++ b/script/update @@ -119,6 +119,10 @@ def gyp_env(target_arch, component): env['DEPOT_TOOLS_WIN_TOOLCHAIN'] = '0' env['GYP_MSVS_VERSION'] = '2013' + # ARM build requires cross compilation. + if target_arch == 'arm': + env['GYP_CROSSCOMPILE'] = '1' + # Build 32-bit or 64-bit. gyp_defines += ' ' + 'target_arch={0}'.format(target_arch) env['GYP_DEFINES'] = gyp_defines