<div dir="ltr">That works, thanks!</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 1, 2015 at 5:11 PM, Yaron Keren <span dir="ltr"><<a href="mailto:yaron.keren@gmail.com" target="_blank">yaron.keren@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="rtl"><div dir="ltr">You need to cmake with</div><div dir="ltr"><br></div><div dir="ltr"> -DLLVM_USE_CRT_DEBUG=MTd<br></div><div dir="ltr"> -DLLVM_USE_CRT_RELEASE=MT<br></div><div dir="ltr"><br></div><div dir="ltr">for static linking with Debug and Release configurations reprectively.</div><div dir="ltr"><br></div><div dir="ltr">Yaron</div><div dir="ltr"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">2015-02-01 18:39 GMT+02:00 Russell Wallace <span dir="ltr"><<a href="mailto:russell.wallace@gmail.com" target="_blank">russell.wallace@gmail.com</a>></span>:</div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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" target="_blank">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" target="_blank">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>
<br></div></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>