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

Side by Side Diff: build/config/compiler/compiler.gni

Issue 2389923003: Add an optimize_for_fuzzing GN flag to build with -O1 (Closed)
Patch Set: Add an optimize_for_fuzzing GN flag to build with -O1 Created 4 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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/sanitizers/sanitizers.gni") 8 import("//build/config/sanitizers/sanitizers.gni")
9 import("//build/toolchain/goma.gni") 9 import("//build/toolchain/goma.gni")
10 import("//build/toolchain/toolchain.gni") 10 import("//build/toolchain/toolchain.gni")
(...skipping 29 matching lines...) Expand all
40 is_win_fastlink = false 40 is_win_fastlink = false
41 41
42 # Specify the current PGO phase, only used for the Windows MSVS build. Here's 42 # Specify the current PGO phase, only used for the Windows MSVS build. Here's
43 # the different values that can be used: 43 # the different values that can be used:
44 # 0 : Means that PGO is turned off. 44 # 0 : Means that PGO is turned off.
45 # 1 : Used during the PGI (instrumentation) phase. 45 # 1 : Used during the PGI (instrumentation) phase.
46 # 2 : Used during the PGO (optimization) phase. 46 # 2 : Used during the PGO (optimization) phase.
47 # 47 #
48 # TODO(sebmarchand): Add support for the PGU (update) phase. 48 # TODO(sebmarchand): Add support for the PGU (update) phase.
49 chrome_pgo_phase = 0 49 chrome_pgo_phase = 0
50
51 # Optimize for coverage guided fuzzing (balance between speed and number of
52 # branches)
53 optimize_for_fuzzing = false
Dirk Pranke 2016/10/03 20:37:13 If this doesn't need to be referenced outside of /
Oliver Chang 2016/10/03 20:54:25 Done.
50 } 54 }
51 55
52 declare_args() { 56 declare_args() {
53 # Whether or not the official builds should be built with full WPO. Enabled by 57 # Whether or not the official builds should be built with full WPO. Enabled by
54 # default for the PGO and the x64 builds. 58 # default for the PGO and the x64 builds.
55 if (chrome_pgo_phase > 0) { 59 if (chrome_pgo_phase > 0) {
56 full_wpo_on_official = true 60 full_wpo_on_official = true
57 } else { 61 } else {
58 full_wpo_on_official = false 62 full_wpo_on_official = false
59 } 63 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } else { 105 } else {
102 symbol_level = 0 106 symbol_level = 0
103 } 107 }
104 } 108 }
105 109
106 # Assert that the configuration isn't going to hit https://crbug.com/648948. 110 # Assert that the configuration isn't going to hit https://crbug.com/648948.
107 assert(!is_android || android_64bit_target_cpu || is_component_build || 111 assert(!is_android || android_64bit_target_cpu || is_component_build ||
108 symbol_level < 2, 112 symbol_level < 2,
109 "Android 32-bit non-component builds cannot have symbol_level=2 " + 113 "Android 32-bit non-component builds cannot have symbol_level=2 " +
110 "due to 4GiB file size limit, see https://crbug.com/648948") 114 "due to 4GiB file size limit, see https://crbug.com/648948")
OLDNEW
« build/config/compiler/BUILD.gn ('K') | « build/config/compiler/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698