| 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 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 #cflags = [ "/Oy-" ] # Re-enable frame pointers. |
| 1399 } | 1401 } |
| 1400 } | 1402 } |
| 1401 | 1403 |
| 1402 # Default "optimization on" config. | 1404 # Default "optimization on" config. |
| 1403 config("optimize") { | 1405 config("optimize") { |
| 1404 if (is_win) { | 1406 if (is_win) { |
| 1405 # TODO(thakis): Remove is_clang here, https://crbug.com/598772 | 1407 # TODO(thakis): Remove is_clang here, https://crbug.com/598772 |
| 1406 if (is_official_build && full_wpo_on_official && !is_clang) { | 1408 if (is_official_build && full_wpo_on_official && !is_clang) { |
| 1407 common_optimize_on_cflags += [ | 1409 common_optimize_on_cflags += [ |
| 1408 "/GL", # Whole program optimization. | 1410 "/GL", # Whole program optimization. |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1698 | 1700 |
| 1699 if (is_ios || is_mac) { | 1701 if (is_ios || is_mac) { |
| 1700 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1702 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1701 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1703 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1702 config("enable_arc") { | 1704 config("enable_arc") { |
| 1703 common_flags = [ "-fobjc-arc" ] | 1705 common_flags = [ "-fobjc-arc" ] |
| 1704 cflags_objc = common_flags | 1706 cflags_objc = common_flags |
| 1705 cflags_objcc = common_flags | 1707 cflags_objcc = common_flags |
| 1706 } | 1708 } |
| 1707 } | 1709 } |
| OLD | NEW |