The build is still ultimately using cmake, no? That should still create an optimized build by default, including -DNDEBUG.
I agree that if policy is simply to have symbols, we should just make an option to add -g, not make a full DEBUG build. A true debug build absolutely kills performance. > On Jan 11, 2016, at 8:33 AM, Thiago Ize <[email protected]> wrote: > > So you'd want to also add in -DNDEBUG. There's a bunch of other flags that > OIIO sets which you probably would also want to include. > > On Mon, Jan 11, 2016 at 9:29 AM, Richard Shaw <[email protected] > <mailto:[email protected]>> wrote: > On Mon, Jan 11, 2016 at 9:26 AM, Thiago Ize <[email protected] > <mailto:[email protected]>> wrote: > There's a difference between symbols (-g), -DNDEBUG, and "debug mode" (-O0, > -g). If you're actually building in debug mode and then stripping symbols, > all your users are now getting a really slow and crappy OIIO without any > optimizations. What you want is to just add the debug symbols (-g) to the > release mode. Ideally the profile mode would do this for you, but I think > the profile mode in OIIO uses different optimization settings, which makes it > kind of useless (you want to profile the real code made with -O3, not the -O2 > code). > > Ahh, I didn't distinguish there. Standard build flags for Fedora include -g > -O2 (not -O3). > > Thanks, > Richard > > -- Larry Gritz [email protected]
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
