Commit 1e4448b5 authored by ulan@chromium.org's avatar ulan@chromium.org

Use -O2 instead -O3 for Android build.

It produces smaller binary with almost the same performance.

R=benm@chromium.org, jkummerow@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15929009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15071 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 0edbf9e7
...@@ -75,15 +75,8 @@ ...@@ -75,15 +75,8 @@
], ],
'configurations': { 'configurations': {
'Release': { 'Release': {
'cflags!': [
'-O2',
'-Os',
],
'cflags': [ 'cflags': [
'-fdata-sections',
'-ffunction-sections',
'-fomit-frame-pointer', '-fomit-frame-pointer',
'-O3',
], ],
}, # Release }, # Release
}, # configurations }, # configurations
......
...@@ -528,8 +528,7 @@ ...@@ -528,8 +528,7 @@
['v8_enable_extra_checks==1', { ['v8_enable_extra_checks==1', {
'defines': ['ENABLE_EXTRA_CHECKS',], 'defines': ['ENABLE_EXTRA_CHECKS',],
}], }],
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', {
or OS=="android"', {
'cflags!': [ 'cflags!': [
'-O2', '-O2',
'-Os', '-Os',
...@@ -548,6 +547,25 @@ ...@@ -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"', { ['OS=="mac"', {
'xcode_settings': { 'xcode_settings': {
'GCC_OPTIMIZATION_LEVEL': '3', # -O3 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment