| Index: build/config/compiler/BUILD.gn
|
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
| index 738a907031ceae6156350e0f3f3e9bf50a1390f8..db0e6f0ef30569d62d0759b1f6f80af5a22f36e0 100644
|
| --- a/build/config/compiler/BUILD.gn
|
| +++ b/build/config/compiler/BUILD.gn
|
| @@ -1372,15 +1372,7 @@ config("no_optimize") {
|
| } else if (is_android && !android_full_debug) {
|
| # On Android we kind of optimize some things that don't affect debugging
|
| # much even when optimization is disabled to get the binary size down.
|
| - cflags = [
|
| - "-Os",
|
| - "-fdata-sections",
|
| - "-ffunction-sections",
|
| - ]
|
| -
|
| - # Don't use gc-sections since it can cause links to succeed when they
|
| - # actually shouldn't. http://crbug.com/159847
|
| - ldflags = common_optimize_on_ldflags - [ "-Wl,--gc-sections" ]
|
| + cflags = [ "-Os" ]
|
| } else {
|
| cflags = [ "-O0" ]
|
| ldflags = []
|
|
|