I am trying to build the Rust compiler (MSVC build) from source on a Windows VM. When building the rust compiler from source, I encountered an error when it tries to build LLVM. The full relevant log can be found here.
It seems that it tries to execute the directory (bin) instead of the executable (cmake.exe), which led to me thinking that the PATH for cmake is wrongly set. However, running cmake --version yields the correct output in the same script. so it shouldn't be that. Does anyone here know what could cause this wrong cmake reference?