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

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

Issue 2689793003: Enable string pooling in the no_optimize configuration, under Windows. (Closed)
Patch Set: 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 | 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 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
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