On Mon, Mar 9, 2009 at 10:07 AM, Tim Kroeger
<tim.kroe...@cevis.uni-bremen.de> wrote:
> On Mon, 9 Mar 2009, John Peterson wrote:
>
>> In optimized mode you get -DNDEBUG, in debug mode you get -DDEBUG, and
>> in devel-mode you get neither.
>
> I didn't even know that a "devel-mode" exists.  How do I invoke that? I
> can't find it, neither in the output of "./configure --help" nor in the
> installation instructions on the web.  Actually, the other two modes are not
> described there either.  If these modes are really not documented, I would
> suggest to do so.  If they are, I would suggest to make that documentation
> more easily findable.
>
> Oops, the website says something about this, but it only mentions "opt",
> "dbg", and "pro".  Is the other one "devel" or "dvl" or "dev"?

METHOD=devel make

I agree, it's not well-documented.  The best place to find out about
the different modes is probably Make.common.in, not exactly the
standard location for documentation ;-)


>
>> I was just making the statement that we probably wouldn't affect other
>> standard library functions by changing DEBUG to LIBMESH_DEBUG.  We
>> might break something by changing NDEBUG to LIBMESH_NDEBUG, I also
>> realize this is not what you are proposing.
>
> I would vote for decoupling libMesh's debug symbols completely from other
> symbols.  If somebody likes to have DEBUG or NDEBUG defined for use in the
> standard library functions, they can define these symbols manually, can't
> they?  That would be the way to go without libMesh, anyway, wouldn't it?

Yes, but I'd also like to help out app-writers who call naked asserts
in their own codes and use libmesh's makefiles to compile.  As long as
we continue to set the standard NDEBUG, they don't have to worry about
it.

-- 
John

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to