IntelLLVM compiler support code trying to run the MSVC linker
An attempt to build a project (https://github.com/temerkhanov/otfft) with Intel LLVM compilers fails at the link stage on a system with both MSVC and oneAPI compilers installed:
Steps to reproduce: 0. Clone the project, create a build directory, cd into it
- From the oneAPI compiler cmd session run
"C:\Program Files\CMake\bin\cmake.exe" -G "Ninja" ..
- Run
"C:\Program Files\CMake\bin\cmake.exe" --build . -v
- Observe output similar to the the following:
cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=otfft\CMakeFiles\rewrite.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\mt.exe --manifests -- C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1428~1.299\bin\Hostx64\x64\link.exe otfft\CMakeFiles\rewrite.dir\rewrite.cpp.obj /out:otfft\rewrite.exe /implib:otfft\rewrite.lib /pdb:otfft\rewrite.pdb /version:0.0 /machine:x64 /INCREMENTAL:NO /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
FAILED: otfft/rewrite.exe
For some reason it is apparently prioritizing the MS linker over lld