diff --git a/llvm/utils/gn/build/BUILD.gn b/llvm/utils/gn/build/BUILD.gn --- a/llvm/utils/gn/build/BUILD.gn +++ b/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 += [