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 2570483004: Add support for link repros and use it on net_perftests. (Closed)
Patch Set: Address Scott's comments. Created 4 years 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 | « no previous file | build/toolchain/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 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/compiler/pgo/pgo.gni") 8 import("//build/config/compiler/pgo/pgo.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 import("//build/toolchain/goma.gni") 10 import("//build/toolchain/goma.gni")
(...skipping 26 matching lines...) Expand all
37 use_debug_fission = "default" 37 use_debug_fission = "default"
38 38
39 # Tell VS to create a PDB that references information in .obj files rather 39 # Tell VS to create a PDB that references information in .obj files rather
40 # than copying it all. This should improve linker performance. mspdbcmf.exe 40 # than copying it all. This should improve linker performance. mspdbcmf.exe
41 # can be used to convert a fastlink pdb to a normal one. 41 # can be used to convert a fastlink pdb to a normal one.
42 is_win_fastlink = false 42 is_win_fastlink = false
43 43
44 # Whether or not we should turn on incremental WPO. Only affects the VS 44 # Whether or not we should turn on incremental WPO. Only affects the VS
45 # Windows build. 45 # Windows build.
46 use_incremental_wpo = false 46 use_incremental_wpo = false
47
48 # Root directory that will store the MSVC link repro. This should only be
49 # used for debugging purposes on the builders where a MSVC linker flakyness
50 # has been observed. The targets for which a link repro should be generated
51 # should add somethink like this to their configuration:
52 # if (linkrepro_root_dir != "") {
53 # ldflags = ["/LINKREPRO:" + linkrepro_root_dir + "/" + target_name]
54 # }
55 #
56 # Note that doing a link repro uses a lot of disk space and slows down the
57 # build, so this shouldn't be enabled on too many targets.
58 #
59 # See crbug.com/669854.
60 linkrepro_root_dir = ""
47 } 61 }
48 62
49 declare_args() { 63 declare_args() {
50 # Whether or not the official builds should be built with full WPO. Enabled by 64 # Whether or not the official builds should be built with full WPO. Enabled by
51 # default for the PGO and the x64 builds. 65 # default for the PGO and the x64 builds.
52 if (chrome_pgo_phase > 0) { 66 if (chrome_pgo_phase > 0) {
53 full_wpo_on_official = true 67 full_wpo_on_official = true
54 } else { 68 } else {
55 full_wpo_on_official = false 69 full_wpo_on_official = false
56 } 70 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 113 }
100 114
101 # Assert that the configuration isn't going to hit https://crbug.com/648948. 115 # Assert that the configuration isn't going to hit https://crbug.com/648948.
102 assert(ignore_elf32_limitations || !is_android || 116 assert(ignore_elf32_limitations || !is_android ||
103 (android_64bit_target_cpu && !build_apk_secondary_abi) || 117 (android_64bit_target_cpu && !build_apk_secondary_abi) ||
104 is_component_build || symbol_level < 2 || is_clang, 118 is_component_build || symbol_level < 2 || is_clang,
105 "Android 32-bit non-component, non-clang builds cannot have " + 119 "Android 32-bit non-component, non-clang builds cannot have " +
106 "symbol_level=2 due to 4GiB file size limit, see " + 120 "symbol_level=2 due to 4GiB file size limit, see " +
107 "https://crbug.com/648948. If you really want to try this out, " + 121 "https://crbug.com/648948. If you really want to try this out, " +
108 "set ignore_elf32_limitations=true.") 122 "set ignore_elf32_limitations=true.")
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698