| Index: build/common.gypi
|
| diff --git a/build/common.gypi b/build/common.gypi
|
| index 127749a47380591ff3e0d9cc96a0f06034068a68..09abe2978ed9ab7bf92814088e06e00540365253 100644
|
| --- a/build/common.gypi
|
| +++ b/build/common.gypi
|
| @@ -528,8 +528,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',
|
| @@ -548,6 +547,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
|
|
|