summaryrefslogtreecommitdiffstats
path: root/lld/COFF/Config.h
diff options
context:
space:
mode:
authorTakuto Ikuta <takuto.ikuta@gmail.com>2018-07-19 04:56:22 +0000
committerTakuto Ikuta <takuto.ikuta@gmail.com>2018-07-19 04:56:22 +0000
commitd855928ec37e26e98813046d2eb8062ab18cc40c (patch)
tree4a563582f84be97d035918f04f8c1c45170f5e1b /lld/COFF/Config.h
parentc35e4bf7ebd2844740bb28f3273742295e61b0a5 (diff)
downloadbcm5719-llvm-d855928ec37e26e98813046d2eb8062ab18cc40c.tar.gz
bcm5719-llvm-d855928ec37e26e98813046d2eb8062ab18cc40c.zip
[PDB] Add PDBSourcePath flag to support absolutize source file path
This patch changes relative path for source files in obj files to absolute path in PDB when linking with added flag. I will make obj file generated by clang-cl independent from build directory for chromium build. But I don't want to confuse visual studio debugger or require additional configuration. To attain this goal, I added flag to convert relative source file path in obj to absolute path when emitting PDB. By removing absolute path from obj files, we can share build cache between chromium developers even when they are doing debug build. That will make build time faster. More context: https://bugs.chromium.org/p/chromium/issues/detail?id=712796 https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/5HXSVX-7fPc llvm-svn: 337439
Diffstat (limited to 'lld/COFF/Config.h')
-rw-r--r--lld/COFF/Config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/COFF/Config.h b/lld/COFF/Config.h
index 43dc75883e9..3ae50b86833 100644
--- a/lld/COFF/Config.h
+++ b/lld/COFF/Config.h
@@ -104,6 +104,7 @@ struct Configuration {
std::vector<std::string> NatvisFiles;
llvm::SmallString<128> PDBAltPath;
llvm::SmallString<128> PDBPath;
+ llvm::SmallString<128> PDBSourcePath;
std::vector<llvm::StringRef> Argv;
// Symbols in this set are considered as live by the garbage collector.
OpenPOWER on IntegriCloud