[PATCH] D51952: [cmake] Speed up check-llvm 5x by delay loading shell32 and ole32
Reid Kleckner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 11 15:28:00 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL342002: [cmake] Speed up check-llvm 5x by delay loading shell32 and ole32 (authored by rnk, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D51952?vs=164979&id=164988#toc
Repository:
rL LLVM
https://reviews.llvm.org/D51952
Files:
llvm/trunk/lib/Support/CMakeLists.txt
Index: llvm/trunk/lib/Support/CMakeLists.txt
===================================================================
--- llvm/trunk/lib/Support/CMakeLists.txt
+++ llvm/trunk/lib/Support/CMakeLists.txt
@@ -38,6 +38,12 @@
endif()
endif( MSVC OR MINGW )
+# Delay load shell32.dll if possible to speed up process startup.
+set (delayload_flags)
+if (MSVC)
+ set (delayload_flags delayimp -delayload:shell32.dll -delayload:ole32.dll)
+endif()
+
add_llvm_library(LLVMSupport
AMDGPUMetadata.cpp
APFloat.cpp
@@ -164,7 +170,7 @@
${LLVM_MAIN_INCLUDE_DIR}/llvm/ADT
${LLVM_MAIN_INCLUDE_DIR}/llvm/Support
${Backtrace_INCLUDE_DIRS}
- LINK_LIBS ${system_libs}
+ LINK_LIBS ${system_libs} ${delayload_flags}
)
set_property(TARGET LLVMSupport PROPERTY LLVM_SYSTEM_LIBS "${system_libs}")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51952.164988.patch
Type: text/x-patch
Size: 796 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180911/6811bd6a/attachment.bin>
More information about the llvm-commits
mailing list