[cfe-dev] Clang 3.5 Release Pre-Pre-Pre-Announcement
Gabriel Dos Reis
gdr at integrable-solutions.net
Wed Jun 4 11:12:00 PDT 2014
On Wed, Jun 4, 2014 at 8:30 AM, Richard <legalize at xmission.com> wrote:
> In article <
> CANa4zJryi4eyWDXYwxWViHC6SLOZxKF2pucrdHDFFLnmxKExjg at mail.gmail.com>,
> Yaron Keren <yaron.keren at gmail.com> writes:
>
> > FWIW, I found that clang compiled with Visual C++ in Debug mode too slow,
> > for two reasons.
> > The first reason was that optimizations are turned off. The second one is
> > trickier, if the libraries are Debug, Visual C++ defines _DEBUG [...]
>
> Ah yes, I remember. Using the release built clang libraries the headers
> end up doing different things because _DEBUG is defined in your
> project and not defined when the libraries were compiled.
>
> So this is another wrinkle that is specific to clang and not the CRT.
Some feedback on Debug vs. non-Debug build.
I tried a build setup that I haven't seen documented anywhere on Clang's
website (or on The Internet):
(1) use PowerShell as working shell --
http://en.wikipedia.org/wiki/Windows_PowerShell
(2) use cmake to generate project files
(3) use msbuild to launch and drive the build
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).
The ability to build from PowerShell means automation from a very nice and
increasingly popular shell to work with on Windows platforms :-)
-- Gaby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140604/0f18db86/attachment.html>
More information about the cfe-dev
mailing list