From: rmcilroy@chromium.org Date: Wed, 26 Mar 2014 18:23:34 +0000 (+0000) Subject: Modify toolchain.gypi to avoid adding -m64 flag on android. X-Git-Tag: upstream/4.7.83~9981 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75e4fa300cbd177493739d68c1a5301221d2b353;p=platform%2Fupstream%2Fv8.git Modify toolchain.gypi to avoid adding -m64 flag on android. The -m64 flag isn't supported on Android. Add a similar gyp condition to avoid setting the flag on Android in a similar manner to how the -m32 flag is avoided on android. BUG=354405 LOG=N R=ulan@chromium.org Review URL: https://codereview.chromium.org/212863007 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20289 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/build/toolchain.gypi b/build/toolchain.gypi index 5783529..4a70d6f 100644 --- a/build/toolchain.gypi +++ b/build/toolchain.gypi @@ -428,8 +428,12 @@ 'variables': { 'm64flag': ' /dev/null 2>&1 < /dev/null) && echo "-m64" || true)', }, - 'cflags': [ '<(m64flag)' ], - 'ldflags': [ '<(m64flag)' ], + 'conditions': [ + ['((OS!="android" and OS!="qnx") or clang==1)', { + 'cflags': [ '<(m64flag)' ], + 'ldflags': [ '<(m64flag)' ], + }], + ], }] ], }],