<div dir="ltr"> I'm trying to build LLVM 3.5.1 on Windows, almost successfully; the remaining stumbling block is getting static linking for release builds. The problem is that the .vcxproj is interpreted by msbuild to compile with the /MD option instead of /MT, as detailed in:<div><br></div><div><a href="https://stackoverflow.com/questions/28262372/getting-msbuild-to-use-mt-staticrelease">https://stackoverflow.com/questions/28262372/getting-msbuild-to-use-mt-staticrelease</a><br></div><div><br></div><div>Haven't got any answers on that question, and discussion in:</div><div><br></div><div><a href="https://social.msdn.microsoft.com/Forums/vstudio/en-US/1a6dd13c-9f5c-430b-88ba-518bfcca00b1/how-to-set-the-runtime-library-to-mt-on-command-line-with-msbuild?forum=vcgeneral">https://social.msdn.microsoft.com/Forums/vstudio/en-US/1a6dd13c-9f5c-430b-88ba-518bfcca00b1/how-to-set-the-runtime-library-to-mt-on-command-line-with-msbuild?forum=vcgeneral</a><br></div><div><br></div><div>suggests msbuild isn't even capable of such.</div><div><br></div><div>What's the best way to get a static release build?</div></div>