Skip to content

Commit

Permalink
gn build: Port r342002
Browse files Browse the repository at this point in the history
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

llvm-svn: 355604
  • Loading branch information
nico committed Mar 7, 2019
1 parent 5a0006d commit a927114
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,12 @@ static_library("Support") {

if (current_os == "linux" || current_os == "android") {
libs += [ "dl" ]
} else if (current_os == "win") {
# Delay load shell32.dll if possible to speed up process startup.
libs += [ "delayimp.lib" ]
ldflags = [
"-delayload:ole32.dll",
"-delayload:shell32.dll",
]
}
}

0 comments on commit a927114

Please sign in to comment.