From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] toolchain/helpers.mk: fixup check_gcc_version.
Date: Tue, 21 Feb 2017 15:59:20 +0100 [thread overview]
Message-ID: <87k28joaif.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <b3b253af-7154-237b-704f-5544ed602fcb@c-sky.com> (ren guo's message of "Tue, 21 Feb 2017 22:15:49 +0800")
>>>>> "ren" == ren guo <ren_guo@c-sky.com> writes:
> Thx Thomas,
> Cool Idea! but it need be retested.
> I couldn't find a proper way to avoid the spaces around the ".", and i
> think sed is ok :)
Alternatively we could drop the . and use the shell or awk or whatever
to convert from space separated to .-separated:
echo "__GNUC__ __GNUC_MINOR__" | gcc -P -E - | \
{ read MAJOR MINOR; echo $MAJOR.$MINOR ; }
Not that this is so much prettier.
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2017-02-21 14:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-21 9:04 [Buildroot] [PATCH 1/1] toolchain/helpers.mk: fixup check_gcc_version Guo Ren
2017-02-21 9:26 ` Thomas Petazzoni
2017-02-21 14:15 ` ren_guo
2017-02-21 14:59 ` Peter Korsgaard [this message]
2017-02-22 2:16 ` ren_guo
2017-02-21 14:33 ` Arnout Vandecappelle
2017-02-22 2:11 ` ren_guo
2017-02-21 10:05 ` Arnout Vandecappelle
2017-02-21 14:19 ` ren_guo
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=87k28joaif.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.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