Here's some info about the issues that were discussed in this thread:<div><br></div><div>1. Patch for forwarding -l argumets to link.exe is already on cfe-commits but I'm missing a test, this is my first priority. We haven't decided if extension should be added where needed, so that -luser32 becomes user32.lib?</div>
<div><br></div><div>2. There is a much better way to solve the problem of choosing the linker. Clang should look for the active linker using the environment variables. This way it will always find "the right one", provided that Clang was invoked through desired Visual Studio Tools Command Prompt (running vcvars.bat is also an option). The same should go for msys. This is what I plan to do next, at least the Visual Studio part since I know very little about msys. The patch that was attached in this thread can be safely ignored :)</div>