Index: build/toolchain.gypi |
diff --git a/build/toolchain.gypi b/build/toolchain.gypi |
index 4e6869bae1a02e4dc7aea80f811e47d1c35f8f50..0852eac04d6b1182afb7ee2fb6b777db133014cb 100644 |
--- a/build/toolchain.gypi |
+++ b/build/toolchain.gypi |
@@ -348,6 +348,21 @@ |
}, |
'msvs_configuration_platform': 'x64', |
}], # v8_target_arch=="x64" |
+ ['v8_target_arch=="x32"', { |
+ 'defines': [ |
+ # x32 port shares the source code with x64 port. |
+ 'V8_TARGET_ARCH_X64', |
+ 'V8_TARGET_ARCH_32_BIT', |
+ ], |
+ 'cflags': [ |
+ '-mx32', |
+ # Inhibit warning if long long type is used. |
+ '-Wno-long-long', |
+ ], |
+ 'ldflags': [ |
+ '-mx32', |
+ ], |
+ }], # v8_target_arch=="x32" |
['OS=="win"', { |
'defines': [ |
'WIN32', |