Curent svn build, generates llvm DEBUG builds

It is my first llvm compilation and I have to admit that has been quite straight fordward, but I have build svn version r160256 from today, using cmake and visual studio 2010 SP1, and when I run clang -version, I get this;
clang version 3.2 (trunk 160256)
Target: i686-pc-win32
Thread model: posix

But ig I do so with llc or any other llcm executable I get DEBUG build this;
LLVM version 3.2svn
DEBUG build.
Built Jul 16 2012 (16:31:02).
Default target: i686-pc-win32
Host CPU: penryn
Registered Targets:
arm - ARM
cpp - C++ backend
thumb - Thumb
x86 - 32-bit X86: Pentium-Pro and above
x86-64 - 64-bit X86: EM64T and AMD64
xcore - XCore

Why I get DEBUG builds?


Are you sure that you’re using the Release configuration because my Debug version of Clang gives the same output as yours?

AFAIK I’m using Release version, the .exe files are located on the “build\bin\Release” and I configured Release on the solution configuration.

I compiled the ALL_BUILD target, but some test hang, so after that I build the PACKAGE target and everything was right, I have not been able to test it fully with my code base yet, but seems ok.


It has been since r29020. :smiley:
depends on definition of __OPTIMIZE__ .

Your llc.exe should be built with Release, if llc is bin/Release/llc.exe .

I won't find corresponding predefinitions in cl.exe.

Shall we suppress the line "DEBUG build." under cl.exe ?