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

Side by Side Diff: build/config/BUILDCONFIG.gn

Issue 2924093003: (Do not land) Very hacky patch for using -fprofile-functions in the Win-Clang build
Patch Set: Add code to print functions by call frquency Created 3 years, 6 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/BUILD.gn ('k') | build/config/win/BUILD.gn » ('j') | 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 # ============================================================================= 5 # =============================================================================
6 # WHAT IS THIS FILE? 6 # WHAT IS THIS FILE?
7 # ============================================================================= 7 # =============================================================================
8 # 8 #
9 # This is the master GN build configuration. This file is loaded after the 9 # This is the master GN build configuration. This file is loaded after the
10 # build args (args.gn) for the build directory and after the toplevel ".gn" 10 # build args (args.gn) for the build directory and after the toplevel ".gn"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 current_cpu != "ppc" && current_cpu != "mips" && current_cpu != "mips64") 143 current_cpu != "ppc" && current_cpu != "mips" && current_cpu != "mips64")
144 144
145 # Allows the path to a custom target toolchain to be injected as a single 145 # Allows the path to a custom target toolchain to be injected as a single
146 # argument, and set as the default toolchain. 146 # argument, and set as the default toolchain.
147 custom_toolchain = "" 147 custom_toolchain = ""
148 148
149 # This should not normally be set as a build argument. It's here so that 149 # This should not normally be set as a build argument. It's here so that
150 # every toolchain can pass through the "global" value via toolchain_args(). 150 # every toolchain can pass through the "global" value via toolchain_args().
151 host_toolchain = "" 151 host_toolchain = ""
152 152
153 # XXX: This is probably not the right place.
154 use_order_profiling = false
155
153 # DON'T ADD MORE FLAGS HERE. Read the comment above. 156 # DON'T ADD MORE FLAGS HERE. Read the comment above.
154 } 157 }
155 158
156 declare_args() { 159 declare_args() {
157 # Debug build. Enabling official builds automatically sets is_debug to false. 160 # Debug build. Enabling official builds automatically sets is_debug to false.
158 is_debug = !is_official_build 161 is_debug = !is_official_build
159 } 162 }
160 163
161 declare_args() { 164 declare_args() {
162 # Component build. Setting to true compiles targets declared as "components" 165 # Component build. Setting to true compiles targets declared as "components"
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 if (current_os != "aix") { 544 if (current_os != "aix") {
542 default_compiler_configs += 545 default_compiler_configs +=
543 [ "//build/config/gcc:symbol_visibility_hidden" ] 546 [ "//build/config/gcc:symbol_visibility_hidden" ]
544 } 547 }
545 } 548 }
546 549
547 if (is_android) { 550 if (is_android) {
548 default_compiler_configs += 551 default_compiler_configs +=
549 [ "//build/config/android:default_cygprofile_instrumentation" ] 552 [ "//build/config/android:default_cygprofile_instrumentation" ]
550 } 553 }
554 if (is_win) {
555 default_compiler_configs +=
556 [ "//build/config/win:default_cygprofile_instrumentation" ]
557 }
551 558
552 if (is_clang && !is_nacl) { 559 if (is_clang && !is_nacl) {
553 default_compiler_configs += [ 560 default_compiler_configs += [
554 "//build/config/clang:find_bad_constructs", 561 "//build/config/clang:find_bad_constructs",
555 "//build/config/clang:extra_warnings", 562 "//build/config/clang:extra_warnings",
556 ] 563 ]
557 } 564 }
558 565
559 # Debug/release-related defines. 566 # Debug/release-related defines.
560 if (is_debug) { 567 if (is_debug) {
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 set_defaults("component") { 697 set_defaults("component") {
691 if (is_component_build) { 698 if (is_component_build) {
692 configs = default_shared_library_configs 699 configs = default_shared_library_configs
693 if (is_android) { 700 if (is_android) {
694 configs -= [ "//build/config/android:hide_all_but_jni_onload" ] 701 configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
695 } 702 }
696 } else { 703 } else {
697 configs = default_compiler_configs 704 configs = default_compiler_configs
698 } 705 }
699 } 706 }
OLDNEW
« no previous file with comments | « build/config/BUILD.gn ('k') | build/config/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698