MSVC as ASM gets confused if Cygwin ld.exe is in the PATH
I have a CI system set up that uses Cygwin for a number of automation tasks. Therefore I have Cygwin's bin/ directory at the end of my PATH system-wide. Now when I use official cmake-3.9.6-win64-x64 from a Visual Studio Build Tools x64 Command Prompt, cmake will find ld.exe
in the PATH and try to use it instead of link.exe
. ld.exe
comes from Cygwin binutils and comes in the PATH after link.exe
. I think the latter should be prefered. Is there some way how I can change this behavior wihtout the need to physically remove the file ld.exe
?
Edited by Brad King