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 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
9 import("//build/toolchain/cc_wrapper.gni") | 9 import("//build/toolchain/cc_wrapper.gni") |
10 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1471 # You can override the symbol level on a per-target basis by removing the | 1471 # You can override the symbol level on a per-target basis by removing the |
1472 # default config and then adding the named one you want: | 1472 # default config and then adding the named one you want: |
1473 # | 1473 # |
1474 # configs -= [ "//build/config/compiler:default_symbols" ] | 1474 # configs -= [ "//build/config/compiler:default_symbols" ] |
1475 # configs += [ "//build/config/compiler:symbols" ] | 1475 # configs += [ "//build/config/compiler:symbols" ] |
1476 | 1476 |
1477 # Full symbols. | 1477 # Full symbols. |
1478 config("symbols") { | 1478 config("symbols") { |
1479 if (is_win) { | 1479 if (is_win) { |
1480 import("//build/toolchain/goma.gni") | 1480 import("//build/toolchain/goma.gni") |
1481 if (use_goma) { | 1481 assert(!use_goma, |
1482 # Disable symbols during goma compilation because otherwise the redundant | 1482 "Cannot generate full symbols w/ goma, use symbol_level=1") |
scottmg
2016/08/03 23:37:24
Oh, we don't have win_z7 in GN? I guess goma-win i
| |
1483 # debug information (repeated in every .obj file) makes linker memory | 1483 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. |
1484 # consumption and link times unsustainable (crbug.com/630074). | 1484 |
1485 cflags = [] | |
1486 } else { | |
1487 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. | |
1488 } | |
1489 if (is_win_fastlink && visual_studio_version != "2013") { | 1485 if (is_win_fastlink && visual_studio_version != "2013") { |
1490 # Tell VS 2015+ to create a PDB that references debug | 1486 # Tell VS 2015+ to create a PDB that references debug |
1491 # information in .obj and .lib files instead of copying | 1487 # information in .obj and .lib files instead of copying |
1492 # it all. This flag is incompatible with /PROFILE | 1488 # it all. This flag is incompatible with /PROFILE |
1493 ldflags = [ "/DEBUG:FASTLINK" ] | 1489 ldflags = [ "/DEBUG:FASTLINK" ] |
1494 } else { | 1490 } else { |
1495 ldflags = [ "/DEBUG" ] | 1491 ldflags = [ "/DEBUG" ] |
1496 } | 1492 } |
1497 } else { | 1493 } else { |
1498 if (is_mac || is_ios) { | 1494 if (is_mac || is_ios) { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1562 | 1558 |
1563 if (is_ios || is_mac) { | 1559 if (is_ios || is_mac) { |
1564 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1560 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1565 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1561 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1566 config("enable_arc") { | 1562 config("enable_arc") { |
1567 common_flags = [ "-fobjc-arc" ] | 1563 common_flags = [ "-fobjc-arc" ] |
1568 cflags_objc = common_flags | 1564 cflags_objc = common_flags |
1569 cflags_objcc = common_flags | 1565 cflags_objcc = common_flags |
1570 } | 1566 } |
1571 } | 1567 } |
OLD | NEW |