Commit 2433e6ab authored by pcc's avatar pcc Committed by Commit bot

Pass -Oz flag to Clang when targeting Android.

The -Oz flag enables more aggressive size optimizations. Shrinks the
libchromeshell.so DSO by around 2.5MB.

BUG=481675
R=thakis@chromium.org

Review URL: https://codereview.chromium.org/1103393002

Cr-Commit-Position: refs/heads/master@{#327183}
parent fec395b4
...@@ -3756,10 +3756,18 @@ ...@@ -3756,10 +3756,18 @@
], ],
}], }],
['OS=="android"', { ['OS=="android"', {
'conditions': [
['clang==1', {
'variables': {
'release_optimize%': 'z',
},
}, {
'variables': { 'variables': {
'release_optimize%': 's', 'release_optimize%': 's',
}, },
}], }],
],
}],
['profiling==1', { ['profiling==1', {
'cflags': [ 'cflags': [
'-fno-omit-frame-pointer', '-fno-omit-frame-pointer',
......
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