| 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/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") |
| 8 import("//build/config/compiler/compiler.gni") | 8 import("//build/config/compiler/compiler.gni") |
| 9 import("//build/config/nacl/config.gni") | 9 import("//build/config/nacl/config.gni") |
| 10 import("//build/toolchain/cc_wrapper.gni") | 10 import("//build/toolchain/cc_wrapper.gni") |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 # AFDO (Automatic Feedback Directed Optimizer) is a form of profile-guided | 87 # AFDO (Automatic Feedback Directed Optimizer) is a form of profile-guided |
| 88 # optimization that GCC supports. It used by ChromeOS in their official | 88 # optimization that GCC supports. It used by ChromeOS in their official |
| 89 # builds. To use it, set auto_profile_path to the path to a file containing | 89 # builds. To use it, set auto_profile_path to the path to a file containing |
| 90 # the needed gcov profiling data. | 90 # the needed gcov profiling data. |
| 91 auto_profile_path = "" | 91 auto_profile_path = "" |
| 92 | 92 |
| 93 # Optimize for coverage guided fuzzing (balance between speed and number of | 93 # Optimize for coverage guided fuzzing (balance between speed and number of |
| 94 # branches) | 94 # branches) |
| 95 optimize_for_fuzzing = false | 95 optimize_for_fuzzing = false |
| 96 | 96 |
| 97 # Optimize symbol files for maximizing goma cache hit rate. This isn't | 97 # Optimize symbol files for maximizing goma cache hit rate. |
| 98 # on by default when goma is enabled because setting this to true may make | |
| 99 # it harder to debug binaries. | |
| 100 strip_absolute_paths_from_debug_symbols = false | 98 strip_absolute_paths_from_debug_symbols = false |
| 101 } | 99 } |
| 102 | 100 |
| 103 if (is_clang && !is_nacl) { | 101 if (is_clang && !is_nacl) { |
| 104 update_args = [ "--print-revision" ] | 102 update_args = [ "--print-revision" ] |
| 105 if (llvm_force_head_revision) { | 103 if (llvm_force_head_revision) { |
| 106 update_args += [ "--llvm-force-head-revision" ] | 104 update_args += [ "--llvm-force-head-revision" ] |
| 107 } | 105 } |
| 108 clang_revision = | 106 clang_revision = |
| 109 exec_script("//tools/clang/scripts/update.py", update_args, "trim string") | 107 exec_script("//tools/clang/scripts/update.py", update_args, "trim string") |
| (...skipping 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1733 | 1731 |
| 1734 if (is_ios || is_mac) { | 1732 if (is_ios || is_mac) { |
| 1735 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1733 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1736 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1734 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1737 config("enable_arc") { | 1735 config("enable_arc") { |
| 1738 common_flags = [ "-fobjc-arc" ] | 1736 common_flags = [ "-fobjc-arc" ] |
| 1739 cflags_objc = common_flags | 1737 cflags_objc = common_flags |
| 1740 cflags_objcc = common_flags | 1738 cflags_objcc = common_flags |
| 1741 } | 1739 } |
| 1742 } | 1740 } |
| OLD | NEW |