We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 730e8f6 commit ecbd523Copy full SHA for ecbd523
llvm/lib/Support/CMakeLists.txt
@@ -79,7 +79,11 @@ endif( MSVC OR MINGW )
79
# Delay load shell32.dll if possible to speed up process startup.
80
set (delayload_flags)
81
if (MSVC)
82
- set (delayload_flags delayimp -delayload:shell32.dll -delayload:ole32.dll)
+ # When linking with Swift, `swiftc.exe` is used as the linker drive rather
83
+ # than invoking `link.exe` directly. In such a case, the flags should be
84
+ # marked as `-Xlinker` to pass them directly to the linker. As a temporary
85
+ # workaround simply elide the delay loading.
86
+ set (delayload_flags $<$<NOT:$<LINK_LANGUAGE:Swift>>:delayimp -delayload:shell32.dll -delayload:ole32.dll>)
87
endif()
88
89
# Link Z3 if the user wants to build it.
0 commit comments