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

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

Issue 2495643002: Make /fastlink builds as optimized as non-/fastlink builds (Closed)
Patch Set: Fix is_syzyasan logic per code review comments Created 4 years, 1 month 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/win/BUILD.gn » ('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 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 asmflags = cflags 1562 asmflags = cflags
1563 ldflags = [] 1563 ldflags = []
1564 } 1564 }
1565 } 1565 }
1566 1566
1567 # Minimal symbols. 1567 # Minimal symbols.
1568 config("minimal_symbols") { 1568 config("minimal_symbols") {
1569 if (is_win) { 1569 if (is_win) {
1570 # Linker symbols for backtraces only. 1570 # Linker symbols for backtraces only.
1571 cflags = [] 1571 cflags = []
1572 if (is_win_fastlink) { 1572 ldflags = [ "/DEBUG" ]
1573 # Tell VS 2015+ to create a PDB that references debug
1574 # information in .obj and .lib files instead of copying
1575 # it all. This flag is incompatible with /PROFILE
1576 ldflags = [ "/DEBUG:FASTLINK" ]
1577 } else {
1578 ldflags = [ "/DEBUG" ]
1579 }
1580 } else { 1573 } else {
1581 if (is_android) { 1574 if (is_android) {
1582 # Breakpad can't handle DWARF 4 symbols properly yet, so use DWARF 3 1575 # Breakpad can't handle DWARF 4 symbols properly yet, so use DWARF 3
1583 # explicitly on android where we are hitting https://crbug.com/638485. 1576 # explicitly on android where we are hitting https://crbug.com/638485.
1584 # The arguments MUST be in this order because of a gcc arg parsing bug. 1577 # The arguments MUST be in this order because of a gcc arg parsing bug.
1585 cflags = [ 1578 cflags = [
1586 "-gdwarf-3", 1579 "-gdwarf-3",
1587 "-g1", 1580 "-g1",
1588 ] 1581 ]
1589 } else { 1582 } else {
(...skipping 30 matching lines...) Expand all
1620 1613
1621 if (is_ios || is_mac) { 1614 if (is_ios || is_mac) {
1622 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1615 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1623 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1616 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1624 config("enable_arc") { 1617 config("enable_arc") {
1625 common_flags = [ "-fobjc-arc" ] 1618 common_flags = [ "-fobjc-arc" ]
1626 cflags_objc = common_flags 1619 cflags_objc = common_flags
1627 cflags_objcc = common_flags 1620 cflags_objcc = common_flags
1628 } 1621 }
1629 } 1622 }
OLDNEW
« no previous file with comments | « no previous file | build/config/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698