Re: [gtkmm] Compilation time



Daniel Elstner <daniel elstner gmx net> writes:
> 2) don't use -O2 for devel builds

I've been wondering - how to do this cleanly with Automake so that
the optimizations are only turned off for developer builds? Currently
I simply do something like this:

  CXXFLAGS = @CXXFLAGS@ $(DEPS_CFLAGS) -Wall -O0

But I'm sure I'll forget to remove the -O0 (minus oh zero) when I'm
ready to release. :-)

-- 
Ole Laursen
http://sunsite.dk/olau/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]