[PATCH] D58925: gn build: Port r342002

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 14:21:50 PST 2019


thakis created this revision.
thakis added a reviewer: rnk.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

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.


https://reviews.llvm.org/D58925

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


Index: llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
===================================================================
--- llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
+++ llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
@@ -159,5 +159,12 @@
 
   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",
+    ]
   }
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58925.189204.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190304/00be363c/attachment.bin>


More information about the llvm-commits mailing list