Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 2702203004: Allow using goma on Windows with symbol_level == 2 (Closed)
Patch Set: Tweaked comment Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/config/compiler/compiler.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 # 1592 #
1593 # You can override the symbol level on a per-target basis by removing the 1593 # You can override the symbol level on a per-target basis by removing the
1594 # default config and then adding the named one you want: 1594 # default config and then adding the named one you want:
1595 # 1595 #
1596 # configs -= [ "//build/config/compiler:default_symbols" ] 1596 # configs -= [ "//build/config/compiler:default_symbols" ]
1597 # configs += [ "//build/config/compiler:symbols" ] 1597 # configs += [ "//build/config/compiler:symbols" ]
1598 1598
1599 # Full symbols. 1599 # Full symbols.
1600 config("symbols") { 1600 config("symbols") {
1601 if (is_win) { 1601 if (is_win) {
1602 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. 1602 if (use_goma) {
1603 # Note that this requires is_win_fastlink, enforced elsewhere.
1604 cflags = [ "/Z7" ] # Debug information in the .obj files.
1605 } else {
1606 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue.
1607 }
1603 1608
1604 if (is_win_fastlink) { 1609 if (is_win_fastlink) {
1605 # Tell VS 2015+ to create a PDB that references debug 1610 # Tell VS 2015+ to create a PDB that references debug
1606 # information in .obj and .lib files instead of copying 1611 # information in .obj and .lib files instead of copying
1607 # it all. This flag is incompatible with /PROFILE 1612 # it all. This flag is incompatible with /PROFILE
1608 ldflags = [ "/DEBUG:FASTLINK" ] 1613 ldflags = [ "/DEBUG:FASTLINK" ]
1609 } else { 1614 } else {
1610 ldflags = [ "/DEBUG" ] 1615 ldflags = [ "/DEBUG" ]
1611 } 1616 }
1612 1617
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 1703
1699 if (is_ios || is_mac) { 1704 if (is_ios || is_mac) {
1700 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1705 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1701 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1706 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1702 config("enable_arc") { 1707 config("enable_arc") {
1703 common_flags = [ "-fobjc-arc" ] 1708 common_flags = [ "-fobjc-arc" ]
1704 cflags_objc = common_flags 1709 cflags_objc = common_flags
1705 cflags_objcc = common_flags 1710 cflags_objcc = common_flags
1706 } 1711 }
1707 } 1712 }
OLDNEW
« no previous file with comments | « no previous file | build/config/compiler/compiler.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698