| 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 # for these builds. | 370 # for these builds. |
| 371 if (is_chrome_branded && is_official_build) { | 371 if (is_chrome_branded && is_official_build) { |
| 372 cflags += [ | 372 cflags += [ |
| 373 "-fno-unwind-tables", | 373 "-fno-unwind-tables", |
| 374 "-fno-asynchronous-unwind-tables", | 374 "-fno-asynchronous-unwind-tables", |
| 375 ] | 375 ] |
| 376 defines += [ "NO_UNWIND_TABLES" ] | 376 defines += [ "NO_UNWIND_TABLES" ] |
| 377 } else { | 377 } else { |
| 378 cflags += [ "-funwind-tables" ] | 378 cflags += [ "-funwind-tables" ] |
| 379 } | 379 } |
| 380 | |
| 381 if (is_clang && !is_nacl && !is_debug) { | |
| 382 # Non-unique section names appears to make linker dead stripping | |
| 383 # less effective. See http://crbug.com/483026#c20 | |
| 384 # TODO(hans): Remove this if resolved upstream. | |
| 385 cflags += [ "-funique-section-names" ] | |
| 386 } | |
| 387 } | 380 } |
| 388 | 381 |
| 389 # Linux/Android common flags setup. | 382 # Linux/Android common flags setup. |
| 390 # --------------------------------- | 383 # --------------------------------- |
| 391 if (is_linux || is_android) { | 384 if (is_linux || is_android) { |
| 392 cflags += [ | 385 cflags += [ |
| 393 "-fPIC", | 386 "-fPIC", |
| 394 "-pipe", # Use pipes for communicating between sub-processes. Faster. | 387 "-pipe", # Use pipes for communicating between sub-processes. Faster. |
| 395 ] | 388 ] |
| 396 | 389 |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1144 cflags += [ "-gsplit-dwarf" ] | 1137 cflags += [ "-gsplit-dwarf" ] |
| 1145 } | 1138 } |
| 1146 } | 1139 } |
| 1147 } | 1140 } |
| 1148 | 1141 |
| 1149 config("no_symbols") { | 1142 config("no_symbols") { |
| 1150 if (!is_win) { | 1143 if (!is_win) { |
| 1151 cflags = [ "-g0" ] | 1144 cflags = [ "-g0" ] |
| 1152 } | 1145 } |
| 1153 } | 1146 } |
| OLD | NEW |