From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/cmake: with BR2_ENABLE_DEBUG use RelWithDebInfo
Date: Sat, 11 Jun 2016 19:06:04 +0200 [thread overview]
Message-ID: <20160611190604.020d7531@free-electrons.com> (raw)
In-Reply-To: <CAHXCMMJrKaCxTSh1psSfDHF6_S2XtHwLA32SBbQGWs2HVGTToA@mail.gmail.com>
Hello,
On Sat, 11 Jun 2016 17:22:24 +0200, Samuel Martin wrote:
> By default CMake sets the CFLAGS like this:
> CMAKE_C_FLAGS_DEBUG=-g
> CMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
Is -O2 -g really what we want for debugging? Optimized code very often
doesn't play well with debugging.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-06-11 17:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-21 20:08 [Buildroot] [PATCH 1/1] package/cmake: with BR2_ENABLE_DEBUG use RelWithDebInfo Charles Hardin
2016-06-11 14:19 ` Thomas Petazzoni
2016-06-11 15:22 ` Samuel Martin
2016-06-11 17:06 ` Thomas Petazzoni [this message]
2016-06-11 17:22 ` Samuel Martin
2016-06-11 17:32 ` Charles Hardin
2016-07-01 21:36 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160611190604.020d7531@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox