[PATCH] D75774: [gn] Use ghash if using clang & LLD together to make PDBs
Reid Kleckner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 6 14:55:23 PST 2020
rnk created this revision.
rnk added reviewers: thakis, hans.
Herald added a project: LLVM.
I noticed my links were a bit slower on Windows than usual.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D75774
Files:
llvm/utils/gn/build/BUILD.gn
Index: llvm/utils/gn/build/BUILD.gn
===================================================================
--- llvm/utils/gn/build/BUILD.gn
+++ llvm/utils/gn/build/BUILD.gn
@@ -64,6 +64,12 @@
"/FS",
]
ldflags += [ "/DEBUG" ]
+
+ # Speed up links with ghash on windows.
+ if (use_lld && is_clang) {
+ cflags += [ "-gcodeview-ghash" ]
+ ldflags += [ "/DEBUG:GHASH" ]
+ }
}
if (is_optimized) {
cflags += [
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75774.248834.patch
Type: text/x-patch
Size: 469 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200306/5cee9eb5/attachment.bin>
More information about the llvm-commits
mailing list