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

Side by Side Diff: build/toolchain/win/BUILD.gn

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 | « build/config/compiler/compiler.gni ('k') | net/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 import("//build/config/clang/clang.gni") 5 import("//build/config/clang/clang.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/sanitizers/sanitizers.gni") 7 import("//build/config/sanitizers/sanitizers.gni")
8 import("//build/config/win/visual_studio_version.gni") 8 import("//build/config/win/visual_studio_version.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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 command = "$python_path $tool_wrapper_path link-wrapper $env False $link / nologo /OUT:$exename /PDB:$pdbname @$rspfile" 265 command = "$python_path $tool_wrapper_path link-wrapper $env False $link / nologo /OUT:$exename /PDB:$pdbname @$rspfile"
266 266
267 if (is_official_build) { 267 if (is_official_build) {
268 # On bots, the binary's PDB grow and eventually exceed 4G, causing the 268 # On bots, the binary's PDB grow and eventually exceed 4G, causing the
269 # link to fail. As there's no utility to keeping the PDB around 269 # link to fail. As there's no utility to keeping the PDB around
270 # incrementally anyway in this config (because we're doing 270 # incrementally anyway in this config (because we're doing
271 # non-incremental LTCG builds), delete it before linking. 271 # non-incremental LTCG builds), delete it before linking.
272 command = "cmd /c $python_path $tool_wrapper_path delete-file $pdbname & & $command" 272 command = "cmd /c $python_path $tool_wrapper_path delete-file $pdbname & & $command"
273 } 273 }
274 274
275 if (linkrepro_root_dir != "") {
276 # Create the directory that will receive the link repro for this target
277 # if needed. Note that this will create one directory per link target
278 # even if this target doesn't generate a link repro. This is necessary
279 # because the linker doesn't generate the directory specified to the
280 # /LINKREPRO flag if it doesn't exist.
281 linkrepro_dir = "$linkrepro_root_dir\\{{target_output_name}}"
282 command = "cmd /c mkdir $linkrepro_dir && $command"
283 }
284
275 default_output_extension = ".exe" 285 default_output_extension = ".exe"
276 default_output_dir = "{{root_out_dir}}" 286 default_output_dir = "{{root_out_dir}}"
277 description = "LINK {{output}}" 287 description = "LINK {{output}}"
278 outputs = [ 288 outputs = [
279 exename, 289 exename,
280 ] 290 ]
281 if (symbol_level != 0) { 291 if (symbol_level != 0) {
282 outputs += [ pdbname ] 292 outputs += [ pdbname ]
283 } 293 }
284 runtime_outputs = outputs 294 runtime_outputs = outputs
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 msvc_toolchain("winrt_x64") { 439 msvc_toolchain("winrt_x64") {
430 environment = "environment.winrt_x64" 440 environment = "environment.winrt_x64"
431 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\"" 441 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\""
432 442
433 toolchain_args = { 443 toolchain_args = {
434 is_clang = false 444 is_clang = false
435 current_cpu = "x64" 445 current_cpu = "x64"
436 } 446 }
437 } 447 }
438 } 448 }
OLDNEW
« no previous file with comments | « build/config/compiler/compiler.gni ('k') | net/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698