| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 if (current_cpu == "arm") { | 7 if (current_cpu == "arm") { |
| 8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
| 9 } | 9 } |
| 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 # for these builds. | 338 # for these builds. |
| 339 if (is_chrome_branded && is_official_build) { | 339 if (is_chrome_branded && is_official_build) { |
| 340 cflags += [ | 340 cflags += [ |
| 341 "-fno-unwind-tables", | 341 "-fno-unwind-tables", |
| 342 "-fno-asynchronous-unwind-tables", | 342 "-fno-asynchronous-unwind-tables", |
| 343 ] | 343 ] |
| 344 defines += [ "NO_UNWIND_TABLES" ] | 344 defines += [ "NO_UNWIND_TABLES" ] |
| 345 } else { | 345 } else { |
| 346 cflags += [ "-funwind-tables" ] | 346 cflags += [ "-funwind-tables" ] |
| 347 } | 347 } |
| 348 |
| 349 if (is_clang && !is_nacl && !is_debug) { |
| 350 # Non-unique section names appears to make linker dead stripping |
| 351 # less effective. See http://crbug.com/483026#c20 |
| 352 # TODO(hans): Remove this if resolved upstream. |
| 353 cflags += [ "-funique-section-names" ] |
| 354 } |
| 348 } | 355 } |
| 349 | 356 |
| 350 # Linux/Android common flags setup. | 357 # Linux/Android common flags setup. |
| 351 # --------------------------------- | 358 # --------------------------------- |
| 352 if (is_linux || is_android) { | 359 if (is_linux || is_android) { |
| 353 cflags += [ | 360 cflags += [ |
| 354 "-fPIC", | 361 "-fPIC", |
| 355 "-pipe", # Use pipes for communicating between sub-processes. Faster. | 362 "-pipe", # Use pipes for communicating between sub-processes. Faster. |
| 356 ] | 363 ] |
| 357 | 364 |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 cflags += [ "-gsplit-dwarf" ] | 1112 cflags += [ "-gsplit-dwarf" ] |
| 1106 } | 1113 } |
| 1107 } | 1114 } |
| 1108 } | 1115 } |
| 1109 | 1116 |
| 1110 config("no_symbols") { | 1117 config("no_symbols") { |
| 1111 if (!is_win) { | 1118 if (!is_win) { |
| 1112 cflags = [ "-g0" ] | 1119 cflags = [ "-g0" ] |
| 1113 } | 1120 } |
| 1114 } | 1121 } |
| OLD | NEW |