Thanks to @3CxEZiVlQ for pointing me in the direction of a solution. I needed to add the folder that contained link.exe to my path. After that, it was able to build fine.
link.exe