Modules: setup `CMAKE_Swift_LINKER_PREFERENCE`
Swift's driver will invoke the C++ driver (clang++
) to invoke the
linker. Additionally, it will configure the command line to deal with
the linkage runtime support object (swiftrt.o
or swiftrt.obj
) to be
added at the right time (similar to C/C++). Since it indirects through
clang++
it will properly setup the linker invocation for C++ and C as
well. This should permit the correct linker driver to be invoked in
multi-language projects.
Closes #19299 (closed)