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

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

Issue 2098613003: [Mac/GN] Use -gdwarf-2 instead of -g2 in //build/config/compiler:symbols. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | no next file » | 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 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 } 1472 }
1473 if (is_win_fastlink && visual_studio_version != "2013") { 1473 if (is_win_fastlink && visual_studio_version != "2013") {
1474 # Tell VS 2015+ to create a PDB that references debug 1474 # Tell VS 2015+ to create a PDB that references debug
1475 # information in .obj and .lib files instead of copying 1475 # information in .obj and .lib files instead of copying
1476 # it all. This flag is incompatible with /PROFILE 1476 # it all. This flag is incompatible with /PROFILE
1477 ldflags = [ "/DEBUG:FASTLINK" ] 1477 ldflags = [ "/DEBUG:FASTLINK" ]
1478 } else { 1478 } else {
1479 ldflags = [ "/DEBUG" ] 1479 ldflags = [ "/DEBUG" ]
1480 } 1480 }
1481 } else { 1481 } else {
1482 if (is_ios) { 1482 if (is_mac || is_ios) {
1483 cflags = [ "-gdwarf-2" ] 1483 cflags = [ "-gdwarf-2" ]
1484 } else { 1484 } else {
1485 cflags = [ "-g2" ] 1485 cflags = [ "-g2" ]
1486 } 1486 }
1487 if (use_debug_fission) { 1487 if (use_debug_fission) {
1488 cflags += [ "-gsplit-dwarf" ] 1488 cflags += [ "-gsplit-dwarf" ]
1489 } 1489 }
1490 asmflags = cflags 1490 asmflags = cflags
1491 ldflags = [] 1491 ldflags = []
1492 } 1492 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1538 1538
1539 if (is_ios || is_mac) { 1539 if (is_ios || is_mac) {
1540 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1540 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1541 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1541 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1542 config("enable_arc") { 1542 config("enable_arc") {
1543 common_flags = [ "-fobjc-arc" ] 1543 common_flags = [ "-fobjc-arc" ]
1544 cflags_objc = common_flags 1544 cflags_objc = common_flags
1545 cflags_objcc = common_flags 1545 cflags_objcc = common_flags
1546 } 1546 }
1547 } 1547 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698