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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 # for these builds. | 401 # for these builds. |
402 if (is_chrome_branded && is_official_build) { | 402 if (is_chrome_branded && is_official_build) { |
403 cflags += [ | 403 cflags += [ |
404 "-fno-unwind-tables", | 404 "-fno-unwind-tables", |
405 "-fno-asynchronous-unwind-tables", | 405 "-fno-asynchronous-unwind-tables", |
406 ] | 406 ] |
407 defines += [ "NO_UNWIND_TABLES" ] | 407 defines += [ "NO_UNWIND_TABLES" ] |
408 } else { | 408 } else { |
409 cflags += [ "-funwind-tables" ] | 409 cflags += [ "-funwind-tables" ] |
410 } | 410 } |
411 | |
412 if (is_clang && !is_nacl && !is_debug) { | |
413 # Non-unique section names appears to make linker dead stripping | |
414 # less effective. See http://crbug.com/483026#c20 | |
415 # TODO(hans): Remove this if resolved upstream. | |
416 cflags += [ "-funique-section-names" ] | |
417 } | |
418 } | 411 } |
419 | 412 |
420 # Linux/Android common flags setup. | 413 # Linux/Android common flags setup. |
421 # --------------------------------- | 414 # --------------------------------- |
422 if (is_linux || is_android) { | 415 if (is_linux || is_android) { |
423 cflags += [ | 416 cflags += [ |
424 "-fPIC", | 417 "-fPIC", |
425 "-pipe", # Use pipes for communicating between sub-processes. Faster. | 418 "-pipe", # Use pipes for communicating between sub-processes. Faster. |
426 ] | 419 ] |
427 | 420 |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1256 cflags += [ "-gsplit-dwarf" ] | 1249 cflags += [ "-gsplit-dwarf" ] |
1257 } | 1250 } |
1258 } | 1251 } |
1259 } | 1252 } |
1260 | 1253 |
1261 config("no_symbols") { | 1254 config("no_symbols") { |
1262 if (!is_win) { | 1255 if (!is_win) { |
1263 cflags = [ "-g0" ] | 1256 cflags = [ "-g0" ] |
1264 } | 1257 } |
1265 } | 1258 } |
OLD | NEW |