Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 2e3c7854d528e9182980d02f14a98958517b3019..455a144e772e35584ceb4ac20a797d23a272ca32 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -451,8 +451,7 @@ |
['v8_enable_extra_checks==1', { |
'defines': ['ENABLE_EXTRA_CHECKS',], |
}], |
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ |
- or OS=="android"', { |
+ ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { |
'cflags!': [ |
'-O2', |
'-Os', |
@@ -471,6 +470,25 @@ |
}], |
], |
}], |
+ ['OS=="android"', { |
+ 'cflags!': [ |
+ '-O3', |
+ '-Os', |
+ ], |
+ 'cflags': [ |
+ '-fdata-sections', |
+ '-ffunction-sections', |
+ '-O2', |
+ ], |
+ 'conditions': [ |
+ [ 'gcc_version==44 and clang==0', { |
+ 'cflags': [ |
+ # Avoid crashes with gcc 4.4 in the v8 test suite. |
+ '-fno-tree-vrp', |
+ ], |
+ }], |
+ ], |
+ }], |
['OS=="mac"', { |
'xcode_settings': { |
'GCC_OPTIMIZATION_LEVEL': '3', # -O3 |