<div dir="ltr">On Wed, Jun 4, 2014 at 8:30 AM, Richard <span dir="ltr"><<a href="mailto:legalize@xmission.com" target="_blank">legalize@xmission.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">In article <<a href="mailto:CANa4zJryi4eyWDXYwxWViHC6SLOZxKF2pucrdHDFFLnmxKExjg@mail.gmail.com">CANa4zJryi4eyWDXYwxWViHC6SLOZxKF2pucrdHDFFLnmxKExjg@mail.gmail.com</a>>,<br>
<div class=""> Yaron Keren <<a href="mailto:yaron.keren@gmail.com">yaron.keren@gmail.com</a>> writes:<br>
<br>
> FWIW, I found that clang compiled with Visual C++ in Debug mode too slow,<br>
> for two reasons.<br>
> The first reason was that optimizations are turned off. The second one is<br>
</div>> trickier, if the libraries are Debug, Visual C++ defines _DEBUG [...]<br>
<br>
Ah yes, I remember. Using the release built clang libraries the headers<br>
end up doing different things because _DEBUG is defined in your<br>
project and not defined when the libraries were compiled.<br>
<br>
So this is another wrinkle that is specific to clang and not the CRT.</blockquote><div><br></div><div>Some feedback on Debug vs. non-Debug build.</div><div><br></div><div>I tried a build setup that I haven't seen documented anywhere on Clang's website (or on The Internet): </div>
<div> (1) use PowerShell as working shell -- <a href="http://en.wikipedia.org/wiki/Windows_PowerShell">http://en.wikipedia.org/wiki/Windows_PowerShell</a></div><div> (2) use cmake to generate project files</div><div>
(3) use msbuild to launch and drive the build</div><div><br></div><div>Things seem to progress smoothly except that for some reasons specifying -DCMAKE_BUILD_TYPE=Release on the command line appears to have no effect at tall, so cmake seems to end up generating projects for Debug build. Which fails at the very last step of linking, with the linker complaining that one should not use Debug CRT build (/MD).</div>
<div><br></div><div>The ability to build from PowerShell means automation from a very nice and increasingly popular shell to work with on Windows platforms :-)</div><div><br></div><div>-- Gaby</div><div> </div></div>
</div></div>