Thank you very much, both of you! I tried "-g3 -O0" which seems to work quite well.
On Tuesday, March 17, 2015 at 3:01:11 PM UTC-7, Brian Hamon wrote: > > OK I believe the correct answer to you question is to define CFLAGS in > your environment before building. Here's the steps I took: > > git pull origin master > export CFLAGS="-O1 -fomit-frame-pointer -DNDEBUG" > What does "-fomit-frame-pointer -DNDEBUG" do? I always thought -DNDEBUG would *remove* assertions from the code. And I *want* assertions to be present so that they can be detected. Am I missing something here? > sh autogen.sh > ./configure > make > make check > sudo make install > > You will also want those same CFLAGS defined when you build your test > executable. > > > > > > On Tue, Mar 17, 2015 at 1:58 PM, Saheel Godhane <[email protected] > <javascript:>> wrote: > >> Hello everyone, >> >> I am a PhD student doing some Software Engineering research using >> LLVM/Clang. I want to compile libuv from source in debug mode so that I can >> track assertions (in my experience, some/all assertions are left out unless >> the project in compiled in debug mode). I have found references to "debug >> mode" in other posts but couldn't find any such option in the `configure` >> script. >> >> Can someone please help me out in this? >> >> Sincerely, >> Saheel Ram Godhane. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "libuv" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] <javascript:> >> . >> Visit this group at http://groups.google.com/group/libuv. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
