[LLVMdev] PR723: Default To Optimized Build

Andrew Lenharth alenhar2 at uiuc.edu
Mon Mar 27 11:01:32 PST 2006

On Mon, 2006-03-27 at 11:47, Chris Lattner wrote:
> On Mon, 27 Mar 2006, John Criswell wrote:
> > One consideration to weigh is that a debug build of LLVM provides users with 
> > more diagnostic information to submit with bug reports (since many bugs are 
> > caught by assertions, which print a readable stack trace).  The tradeoff 
> > seems to be faster and smaller LLVM tools (optimized build) vs. better 
> > diagnostic information for bug reports (debug build).
> >
> > If the LLVM developers who regularly fix user bugs depend on that 
> > information, we should keep it a debug build by default.  Otherwise, I think 
> > an optimized build would be fine.
> Another option is to build an optimized build with assertions on.  Do to 
> local demand, I added a build option 'make ENABLE_OPTIMIZED=1 
> ENABLE_ASSERTIONS=1' that provides this.

How does this compare size and performance wise with a debug build or a
release build?


More information about the llvm-dev mailing list