[llvm] r355604 - gn build: Port r342002

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 07:44:59 PST 2019


Author: nico
Date: Thu Mar  7 07:44:59 2019
New Revision: 355604

URL: http://llvm.org/viewvc/llvm-project?rev=355604&view=rev
Log:
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

Modified:
    llvm/trunk/utils/gn/secondary/llvm/lib/Support/BUILD.gn

Modified: llvm/trunk/utils/gn/secondary/llvm/lib/Support/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/lib/Support/BUILD.gn?rev=355604&r1=355603&r2=355604&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/lib/Support/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/llvm/lib/Support/BUILD.gn Thu Mar  7 07:44:59 2019
@@ -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",
+    ]
   }
 }




More information about the llvm-commits mailing list