Skip to content

Commit d75be4c

Browse files
committed
[gn] Use ghash if using clang & LLD together to make PDBs
I noticed my links were a bit slower on Windows than usual. Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D75774
1 parent 698a127 commit d75be4c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/utils/gn/build/BUILD.gn

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ config("compiler_defaults") {
6464
"/FS",
6565
]
6666
ldflags += [ "/DEBUG" ]
67+
68+
# Speed up links with ghash on windows.
69+
if (use_lld && is_clang) {
70+
cflags += [ "-gcodeview-ghash" ]
71+
ldflags += [ "/DEBUG:GHASH" ]
72+
}
6773
}
6874
if (is_optimized) {
6975
cflags += [

0 commit comments

Comments
 (0)