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 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1477 # You can override the symbol level on a per-target basis by removing the | 1477 # You can override the symbol level on a per-target basis by removing the |
1478 # default config and then adding the named one you want: | 1478 # default config and then adding the named one you want: |
1479 # | 1479 # |
1480 # configs -= [ "//build/config/compiler:default_symbols" ] | 1480 # configs -= [ "//build/config/compiler:default_symbols" ] |
1481 # configs += [ "//build/config/compiler:symbols" ] | 1481 # configs += [ "//build/config/compiler:symbols" ] |
1482 | 1482 |
1483 # Full symbols. | 1483 # Full symbols. |
1484 config("symbols") { | 1484 config("symbols") { |
1485 if (is_win) { | 1485 if (is_win) { |
1486 import("//build/toolchain/goma.gni") | 1486 import("//build/toolchain/goma.gni") |
1487 if (use_goma) { | 1487 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. |
1488 # Disable symbols during goma compilation because otherwise the redundant | 1488 |
1489 # debug information (repeated in every .obj file) makes linker memory | |
1490 # consumption and link times unsustainable (crbug.com/630074). | |
1491 cflags = [] | |
1492 } else { | |
1493 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. | |
1494 } | |
1495 if (is_win_fastlink && visual_studio_version != "2013") { | 1489 if (is_win_fastlink && visual_studio_version != "2013") { |
1496 # Tell VS 2015+ to create a PDB that references debug | 1490 # Tell VS 2015+ to create a PDB that references debug |
1497 # information in .obj and .lib files instead of copying | 1491 # information in .obj and .lib files instead of copying |
1498 # it all. This flag is incompatible with /PROFILE | 1492 # it all. This flag is incompatible with /PROFILE |
1499 ldflags = [ "/DEBUG:FASTLINK" ] | 1493 ldflags = [ "/DEBUG:FASTLINK" ] |
1500 } else { | 1494 } else { |
1501 ldflags = [ "/DEBUG" ] | 1495 ldflags = [ "/DEBUG" ] |
1502 } | 1496 } |
1503 } else { | 1497 } else { |
1504 if (is_mac || is_ios) { | 1498 if (is_mac || is_ios) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1553 } | 1547 } |
1554 } | 1548 } |
1555 | 1549 |
1556 # Default symbols. | 1550 # Default symbols. |
1557 config("default_symbols") { | 1551 config("default_symbols") { |
1558 if (symbol_level == 0) { | 1552 if (symbol_level == 0) { |
1559 configs = [ ":no_symbols" ] | 1553 configs = [ ":no_symbols" ] |
1560 } else if (symbol_level == 1) { | 1554 } else if (symbol_level == 1) { |
1561 configs = [ ":minimal_symbols" ] | 1555 configs = [ ":minimal_symbols" ] |
1562 } else if (symbol_level == 2) { | 1556 } else if (symbol_level == 2) { |
1557 assert( | |
1558 !(is_win && use_goma), | |
Reid Kleckner
2016/08/13 01:55:27
I'd like it if you tossed in '&& !is_clang' so tha
Dirk Pranke
2016/08/14 23:34:58
Okay, will do.
At the moment, I'm actually leanin
| |
1559 "Cannot generate full symbols on windows with goma, use " + | |
1560 "symbol_level=1 or compile locally without goma, which will be " + | |
1561 "faster anyway.") | |
1563 configs = [ ":symbols" ] | 1562 configs = [ ":symbols" ] |
1564 } else { | 1563 } else { |
1565 assert(false) | 1564 assert(false) |
1566 } | 1565 } |
1567 } | 1566 } |
1568 | 1567 |
1569 if (is_ios || is_mac) { | 1568 if (is_ios || is_mac) { |
1570 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1569 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1571 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1570 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1572 config("enable_arc") { | 1571 config("enable_arc") { |
1573 common_flags = [ "-fobjc-arc" ] | 1572 common_flags = [ "-fobjc-arc" ] |
1574 cflags_objc = common_flags | 1573 cflags_objc = common_flags |
1575 cflags_objcc = common_flags | 1574 cflags_objcc = common_flags |
1576 } | 1575 } |
1577 } | 1576 } |
OLD | NEW |