Skip to content

IntelLLVM: Set linker to compiler driver for Windows

William R. Dieter requested to merge williamr/cmake:link-with-driver-1 into master

For IntelLLVM, linking with the compiler driver is preferred over using the linker directly. This is especially true when doing offload to a target accelerator, which can produce object files that the regular linker will not handle properly.

Windows-IntelLLVM relies on Windows-MSVC.cmake for many definitions. This commit does not change that, but does override the MSVC defaults for linking executables, shared libraries, and static libraries so that CMake will use the compiler driver instead of the linker.

Signed-off-by: William R. Dieter william.r.dieter@intel.com
Topic-rename: IntelLLVM-windows-link-with-driver

Edited by Brad King

Merge request reports