Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] The C++11 issue
Date: Sat, 21 Mar 2015 15:52:02 +0100	[thread overview]
Message-ID: <550D8592.5040300@mind.be> (raw)
In-Reply-To: <20150321102858.5e13ec41@free-electrons.com>

On 21/03/15 10:28, Thomas Petazzoni wrote:
> Hello,
> 
> A number of packages start to depend on C++11 features, which are not
> available in all toolchains: toolchains using old compiler versions
> (such as the Blackfin one), but also some older Crosstool-NG generated
> toolchains.

[snip]

> So how do we decide whether a particular toolchain has C++11 support ?
> Do we simply decide that gcc >= 4.8 have sufficient C++11 support for
> now, and we'll adjust things later if needed ?

 Given that:

- even gcc 4.9 could still have some missing libstdc++ features;
- C++14 is on the way;
- we only support gcc as a compiler,

I would say that instead of BR2_TOOLCHAIN_HAS_CXX11, we could use
BR2_GCC_AT_LEAST_4_X similar to the headers. That, at least, is unambiguous. It
has the additional advantage that sometimes we may need the version for some
things unrelated to C++, e.g. support for some compiler flags.

 It does require more Config.in symbols, but at the moment 4.8 and 4.9 are
probably sufficient. But then again, adding an additional symbol is not that
much work so I'd include 4.7 as well.


 BTW, now that bfin internal compiler is gone, can we deprecate 4.5?

 Regards,
 Arnout


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  reply	other threads:[~2015-03-21 14:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-21  9:28 [Buildroot] The C++11 issue Thomas Petazzoni
2015-03-21 14:52 ` Arnout Vandecappelle [this message]
2015-03-22 19:00   ` Bernd Kuhls
2015-03-22 23:22   ` Gustavo Zacarias
2015-03-21 16:37 ` Romain Naour

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=550D8592.5040300@mind.be \
    --to=arnout@mind.be \
    --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