← Back to team overview

dolfin team mailing list archive

debug mode

 

Hello,

Another question, is there an appropriate cmake flag for getting rid
of the -O2?  Too many things are getting inlined to use the debugger
effectively.

Unfortunately setting -DCMAKE_BUILD_TYPE=Debug or Developer doesn't do
it.  Even more surprising doing CXXFLAGS=-O0 cmake ... or cmake
-DCMAKE_CXX_FLAGS gets overwritten as well.  I can manually futz with
CMakeList but thought I would see what is going on here.

-- Andy


Follow ups