summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-11-13 14:52:32 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-13 22:53:25 +0000
commit62b96626799d935ec467c5104f2da5b8ce080592 (patch)
tree5eca966216355741cdfcc4e9b61ee3cad52b3bf4 /build
parent05a5fb0dc0948f88b53641df51a7058976e21274 (diff)
downloadchromium_src-62b96626799d935ec467c5104f2da5b8ce080592.zip
chromium_src-62b96626799d935ec467c5104f2da5b8ce080592.tar.gz
chromium_src-62b96626799d935ec467c5104f2da5b8ce080592.tar.bz2
Use label name to generate PDB names in GN.
On Windows the GN toolchain setup used the output name to make unique PDB names. But the output name isn't necessarily that unique. The only requirement on that is that the outputs not collide, but multiple targets can otherwise have the same output name. Also, the output name can contain slashes that put it in different directories, or spaces which might confuse certain tools. The label name is guaranteed to be unique in a given target_out_dir so this should give better names. Review URL: https://codereview.chromium.org/1443733003 Cr-Commit-Position: refs/heads/master@{#359677}
Diffstat (limited to 'build')
-rw-r--r--build/toolchain/win/BUILD.gn4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/toolchain/win/BUILD.gn b/build/toolchain/win/BUILD.gn
index 97dca96..e310039 100644
--- a/build/toolchain/win/BUILD.gn
+++ b/build/toolchain/win/BUILD.gn
@@ -67,7 +67,7 @@ template("msvc_toolchain") {
tool("cc") {
rspfile = "{{output}}.rsp"
precompiled_header_type = "msvc"
- pdbname = "{{target_out_dir}}/{{target_output_name}}_c.pdb"
+ pdbname = "{{target_out_dir}}/{{label_name}}_c.pdb"
command = "ninja -t msvc -e $env -- $cl /nologo /showIncludes /FC @$rspfile /c {{source}} /Fo{{output}} /Fd$pdbname"
depsformat = "msvc"
description = "CC {{output}}"
@@ -82,7 +82,7 @@ template("msvc_toolchain") {
precompiled_header_type = "msvc"
# The PDB name needs to be different between C and C++ compiled files.
- pdbname = "{{target_out_dir}}/{{target_output_name}}_cc.pdb"
+ pdbname = "{{target_out_dir}}/{{label_name}}_cc.pdb"
command = "ninja -t msvc -e $env -- $cl /nologo /showIncludes /FC @$rspfile /c {{source}} /Fo{{output}} /Fd$pdbname"
depsformat = "msvc"
description = "CXX {{output}}"