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 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1440 } | 1440 } |
1441 ldflags = common_optimize_on_ldflags | 1441 ldflags = common_optimize_on_ldflags |
1442 } | 1442 } |
1443 | 1443 |
1444 # Turn off optimizations. | 1444 # Turn off optimizations. |
1445 config("no_optimize") { | 1445 config("no_optimize") { |
1446 if (is_win) { | 1446 if (is_win) { |
1447 cflags = [ | 1447 cflags = [ |
1448 "/Od", # Disable optimization. | 1448 "/Od", # Disable optimization. |
1449 "/Ob0", # Disable all inlining (on by default). | 1449 "/Ob0", # Disable all inlining (on by default). |
| 1450 "/GF", # Enable string pooling (off by default). |
1450 ] | 1451 ] |
1451 } else if (is_android && !android_full_debug) { | 1452 } else if (is_android && !android_full_debug) { |
1452 # On Android we kind of optimize some things that don't affect debugging | 1453 # On Android we kind of optimize some things that don't affect debugging |
1453 # much even when optimization is disabled to get the binary size down. | 1454 # much even when optimization is disabled to get the binary size down. |
1454 cflags = [ "-Os" ] | 1455 cflags = [ "-Os" ] |
1455 } else { | 1456 } else { |
1456 cflags = [ "-O0" ] | 1457 cflags = [ "-O0" ] |
1457 ldflags = [] | 1458 ldflags = [] |
1458 } | 1459 } |
1459 } | 1460 } |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1694 | 1695 |
1695 if (is_ios || is_mac) { | 1696 if (is_ios || is_mac) { |
1696 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1697 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1697 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1698 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1698 config("enable_arc") { | 1699 config("enable_arc") { |
1699 common_flags = [ "-fobjc-arc" ] | 1700 common_flags = [ "-fobjc-arc" ] |
1700 cflags_objc = common_flags | 1701 cflags_objc = common_flags |
1701 cflags_objcc = common_flags | 1702 cflags_objcc = common_flags |
1702 } | 1703 } |
1703 } | 1704 } |
OLD | NEW |