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

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

Issue 2280533004: Add a GN build configuration for controlling stack frame generation. (Closed)
Patch Set: Created 4 years, 3 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 | « build/config/BUILDCONFIG.gn ('k') | 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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 common_optimize_on_ldflags += [ 1304 common_optimize_on_ldflags += [
1305 "-Wl,--no-as-needed", 1305 "-Wl,--no-as-needed",
1306 "-lpthread", 1306 "-lpthread",
1307 ] 1307 ]
1308 } 1308 }
1309 common_optimize_on_ldflags += [ "-Wl,--as-needed" ] 1309 common_optimize_on_ldflags += [ "-Wl,--as-needed" ]
1310 } 1310 }
1311 } 1311 }
1312 } 1312 }
1313 1313
1314 config("default_stack_frames") {
1315 }
1316
1314 # Default "optimization on" config. 1317 # Default "optimization on" config.
1315 config("optimize") { 1318 config("optimize") {
1316 if (is_win) { 1319 if (is_win) {
1317 # TODO(thakis): Remove is_clang here, https://crbug.com/598772 1320 # TODO(thakis): Remove is_clang here, https://crbug.com/598772
1318 if (is_official_build && full_wpo_on_official && !is_clang) { 1321 if (is_official_build && full_wpo_on_official && !is_clang) {
1319 common_optimize_on_cflags += [ 1322 common_optimize_on_cflags += [
1320 "/GL", # Whole program optimization. 1323 "/GL", # Whole program optimization.
1321 1324
1322 # Disable Warning 4702 ("Unreachable code") for the WPO/PGO builds. 1325 # Disable Warning 4702 ("Unreachable code") for the WPO/PGO builds.
1323 # Probably anything that this would catch that wouldn't be caught in a 1326 # Probably anything that this would catch that wouldn't be caught in a
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1581 1584
1582 if (is_ios || is_mac) { 1585 if (is_ios || is_mac) {
1583 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1586 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1584 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1587 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1585 config("enable_arc") { 1588 config("enable_arc") {
1586 common_flags = [ "-fobjc-arc" ] 1589 common_flags = [ "-fobjc-arc" ]
1587 cflags_objc = common_flags 1590 cflags_objc = common_flags
1588 cflags_objcc = common_flags 1591 cflags_objcc = common_flags
1589 } 1592 }
1590 } 1593 }
OLDNEW
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698