[llvm] Support: allow building with non-C/C++ language linkers (PR #65634)

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 8 06:26:39 PDT 2023


================
@@ -79,7 +79,7 @@ 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)
+  set (delayload_flags $<$<NOT:$<LINK_LANGUAGE:Swift>>:"SHELL:delayimp -delayload:shell32.dll -delayload:ole32.dll">)
----------------
compnerd wrote:

Yes, it didn’t work, and currently the list doesn’t have a repeated word so we can get away with it.

https://github.com/llvm/llvm-project/pull/65634


More information about the llvm-commits mailing list