Fix cross-compilation for ARM (hopefully)
authorjkummerow@chromium.org <jkummerow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 10 Aug 2011 14:07:26 +0000 (14:07 +0000)
committerjkummerow@chromium.org <jkummerow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 10 Aug 2011 14:07:26 +0000 (14:07 +0000)
TEST=Arm builder on Chromium waterfall successfully compiles

Review URL: http://codereview.chromium.org/7607032

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8880 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

build/v8-features.gypi
tools/gyp/v8.gyp

index cb9b61c..099c8f4 100644 (file)
@@ -99,7 +99,7 @@
               }],
               # The ARM assembler assumes the host is 32 bits,
               # so force building 32-bit host tools.
-              [ 'host_arch=="x64"', {
+              [ 'host_arch=="x64" and _toolset=="host "', {
                 'cflags': ['-m32'],
                 'ldflags': ['-m32'],
               }],
index c802e86..d176b93 100644 (file)
                   }],
                   # The ARM assembler assumes the host is 32 bits,
                   # so force building 32-bit host tools.
-                  [ 'host_arch=="x64"', {
+                  [ 'host_arch=="x64" and _toolset=="host"', {
                     'cflags': ['-m32'],
                     'ldflags': ['-m32'],
                   }],