Index: build/gyp_v8 |
diff --git a/build/gyp_v8 b/build/gyp_v8 |
index 4293e7637e39c38d69bc97ada4e473a944502ef5..54f3f7fd6a9a0d320f8aff3395457d7ceba21d16 100755 |
--- a/build/gyp_v8 |
+++ b/build/gyp_v8 |
@@ -156,7 +156,12 @@ if __name__ == '__main__': |
# Generate for the architectures supported on the given platform. |
gyp_args = list(args) |
- gyp_args.append('-Dtarget_arch=ia32') |
+ target_arch = None |
+ for p in gyp_args: |
+ if p.find('-Dtarget_arch=') == 0: |
+ target_arch = p |
+ if target_arch is None: |
+ gyp_args.append('-Dtarget_arch=ia32') |
if utils.GuessOS() == 'linux': |
gyp_args.append('-S-ia32') |
run_gyp(gyp_args) |