Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 696cfbc

Browse files
committed
gn build: Port r342002
I had hoped we could remove the dependency on shell32.lib from lib/Support (there isn't much depending on it), but looks like this will take a while. So for now, port this over. Differential Revision: https://reviews.llvm.org/D58925 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355604 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent d48c58f commit 696cfbc

File tree

1 file changed

+7
-0
lines changed
  • utils/gn/secondary/llvm/lib/Support

1 file changed

+7
-0
lines changed

utils/gn/secondary/llvm/lib/Support/BUILD.gn

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,5 +159,12 @@ static_library("Support") {
159159

160160
if (current_os == "linux" || current_os == "android") {
161161
libs += [ "dl" ]
162+
} else if (current_os == "win") {
163+
# Delay load shell32.dll if possible to speed up process startup.
164+
libs += [ "delayimp.lib" ]
165+
ldflags = [
166+
"-delayload:ole32.dll",
167+
"-delayload:shell32.dll",
168+
]
162169
}
163170
}

0 commit comments

Comments
 (0)