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

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

Issue 2707223002: Make --enable-heap-profiling=native "work" on Windows. (Closed)
Patch Set: Add some TODOs Created 3 years, 9 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
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 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 if (using_sanitizer || enable_profiling || is_debug || 1389 if (using_sanitizer || enable_profiling || is_debug ||
1390 current_cpu == "arm64") { 1390 current_cpu == "arm64") {
1391 # Explicitly ask for frame pointers, otherwise: 1391 # Explicitly ask for frame pointers, otherwise:
1392 # * Stacks may be missing for sanitizer and profiling builds. 1392 # * Stacks may be missing for sanitizer and profiling builds.
1393 # * Debug tcmalloc can crash (crbug.com/636489). 1393 # * Debug tcmalloc can crash (crbug.com/636489).
1394 # * Stacks may be missing for arm64 crash dumps (crbug.com/391706). 1394 # * Stacks may be missing for arm64 crash dumps (crbug.com/391706).
1395 cflags = [ "-fno-omit-frame-pointer" ] 1395 cflags = [ "-fno-omit-frame-pointer" ]
1396 } else if (is_android) { 1396 } else if (is_android) {
1397 cflags = [ "-fomit-frame-pointer" ] 1397 cflags = [ "-fomit-frame-pointer" ]
1398 } 1398 }
1399 } else if (is_win && enable_profiling) {
1400 # common_optimize_on_cflags actually includes /Oy- to enable generation
1401 # of frame pointers, but add it here explicitly in case that changes.
1402 cflags = [ "/Oy-" ]
1399 } 1403 }
1400 } 1404 }
1401 1405
1402 # Default "optimization on" config. 1406 # Default "optimization on" config.
1403 config("optimize") { 1407 config("optimize") {
1404 if (is_win) { 1408 if (is_win) {
1405 # TODO(thakis): Remove is_clang here, https://crbug.com/598772 1409 # TODO(thakis): Remove is_clang here, https://crbug.com/598772
1406 if (is_official_build && full_wpo_on_official && !is_clang) { 1410 if (is_official_build && full_wpo_on_official && !is_clang) {
1407 common_optimize_on_cflags += [ 1411 common_optimize_on_cflags += [
1408 "/GL", # Whole program optimization. 1412 "/GL", # Whole program optimization.
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1703 1707
1704 if (is_ios || is_mac) { 1708 if (is_ios || is_mac) {
1705 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1709 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1706 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1710 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1707 config("enable_arc") { 1711 config("enable_arc") {
1708 common_flags = [ "-fobjc-arc" ] 1712 common_flags = [ "-fobjc-arc" ]
1709 cflags_objc = common_flags 1713 cflags_objc = common_flags
1710 cflags_objcc = common_flags 1714 cflags_objcc = common_flags
1711 } 1715 }
1712 } 1716 }
OLDNEW
« base/debug/stack_trace_unittest.cc ('K') | « base/debug/stack_trace_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698