Here's my attempt to get this working. I think the call to AddLinkerInputs is not needed here because it handles inputs only for gcc compatible driver. If this function gets called it will pass -l arguments to link.exe which doesn't know how to handle them. The only part we need from this function is handling of input files.