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

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

Issue 2684033010: Copy cdb.exe to build_root_dir so it's available to isolated tests (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | build/vs_toolchain.py » ('j') | build/vs_toolchain.py » ('J')
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 26 matching lines...) Expand all
37 } 37 }
38 exec_script("../../vs_toolchain.py", 38 exec_script("../../vs_toolchain.py",
39 [ 39 [
40 "copy_dlls", 40 "copy_dlls",
41 rebase_path(root_build_dir), 41 rebase_path(root_build_dir),
42 configuration_name, 42 configuration_name,
43 target_cpu, 43 target_cpu,
44 ]) 44 ])
45 } 45 }
46 46
47 # Copy cdb.exe for the default toolchain to the root build directory for
48 # isolated tests that need to symbolize minidumps.
49 if (current_toolchain == default_toolchain) {
50 exec_script("../../vs_toolchain.py",
51 [
52 "copy_debugger",
53 rebase_path(root_build_dir),
54 target_cpu,
55 ])
56 }
Dirk Pranke 2017/02/10 18:06:18 Can we merge this into the prior exec_script() cal
57
47 # Parameters: 58 # Parameters:
48 # environment: File name of environment file. 59 # environment: File name of environment file.
49 # 60 #
50 # You would also define a toolchain_args variable with at least these set: 61 # You would also define a toolchain_args variable with at least these set:
51 # current_cpu: current_cpu to pass as a build arg 62 # current_cpu: current_cpu to pass as a build arg
52 # current_os: current_os to pass as a build arg 63 # current_os: current_os to pass as a build arg
53 template("msvc_toolchain") { 64 template("msvc_toolchain") {
54 toolchain(target_name) { 65 toolchain(target_name) {
55 # When invoking this toolchain not as the default one, these args will be 66 # When invoking this toolchain not as the default one, these args will be
56 # passed to the build. They are ignored when this is the default toolchain. 67 # passed to the build. They are ignored when this is the default toolchain.
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 msvc_toolchain("winrt_x64") { 450 msvc_toolchain("winrt_x64") {
440 environment = "environment.winrt_x64" 451 environment = "environment.winrt_x64"
441 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\"" 452 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\""
442 453
443 toolchain_args = { 454 toolchain_args = {
444 is_clang = false 455 is_clang = false
445 current_cpu = "x64" 456 current_cpu = "x64"
446 } 457 }
447 } 458 }
448 } 459 }
OLDNEW
« no previous file with comments | « no previous file | build/vs_toolchain.py » ('j') | build/vs_toolchain.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698