[PATCH] D58925: gn build: Port r342002
    Phabricator via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Mar  7 07:44:25 PST 2019
    
    
  
This revision was automatically updated to reflect the committed changes.
Closed by commit rL355604: gn build: Port r342002 (authored by nico, committed by ).
Herald added a subscriber: kristina.
Changed prior to commit:
  https://reviews.llvm.org/D58925?vs=189204&id=189718#toc
Repository:
  rL LLVM
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58925/new/
https://reviews.llvm.org/D58925
Files:
  llvm/trunk/utils/gn/secondary/llvm/lib/Support/BUILD.gn
Index: llvm/trunk/utils/gn/secondary/llvm/lib/Support/BUILD.gn
===================================================================
--- llvm/trunk/utils/gn/secondary/llvm/lib/Support/BUILD.gn
+++ llvm/trunk/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.189718.patch
Type: text/x-patch
Size: 591 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190307/663b7ec3/attachment.bin>
    
    
More information about the llvm-commits
mailing list