[llvm] d75be4c - [gn] Use ghash if using clang & LLD together to make PDBs
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 9 15:24:19 PDT 2020
Author: Reid Kleckner
Date: 2020-03-09T15:23:54-07:00
New Revision: d75be4c06a73c316f2a1711ecd94a80f46776121
URL: https://github.com/llvm/llvm-project/commit/d75be4c06a73c316f2a1711ecd94a80f46776121
DIFF: https://github.com/llvm/llvm-project/commit/d75be4c06a73c316f2a1711ecd94a80f46776121.diff
LOG: [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
Added:
Modified:
llvm/utils/gn/build/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/build/BUILD.gn b/llvm/utils/gn/build/BUILD.gn
index 31d3ac5e5fc6..a1a4b065d6ff 100644
--- a/llvm/utils/gn/build/BUILD.gn
+++ b/llvm/utils/gn/build/BUILD.gn
@@ -64,6 +64,12 @@ config("compiler_defaults") {
"/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 += [
More information about the llvm-commits
mailing list