| 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 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |