diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-07-30 14:01:30 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-07-30 14:02:00 +0300 |
commit | 659e31939bf364518cfb4e1fa1ac01e0c412b40a (patch) | |
tree | 4e0f6a3c37e60619c0f3a33f0b10ede4cfaf379f /solenv/bin/getcompver.awk | |
parent | 4af021ae0abd83f30ac2a5ad855a6edc37a12324 (diff) |
Accept 4.6.x-google
Change-Id: I4eadea9498dcb5f55bd5cc025d2866b39b486cc3
Diffstat (limited to 'solenv/bin/getcompver.awk')
-rw-r--r-- | solenv/bin/getcompver.awk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/solenv/bin/getcompver.awk b/solenv/bin/getcompver.awk index 124e915b72c9..0d3db775f10c 100644 --- a/solenv/bin/getcompver.awk +++ b/solenv/bin/getcompver.awk @@ -68,6 +68,15 @@ BEGIN { CCversion = substr($0, 0, index($0, "-") - 1) } } +# NDK r8b has "4.6.x-google" +/^[0-9]*[.][0-9]*[.][a-z]*-[0-9a-z]*$/ { + if ( compiler_matched == 0 ) { + # Include the second period in the match so that + # we will get a micro version of zero + x = match( $0, /^[0-9]*[.][0-9]*[.]/ ) + CCversion = substr($0, RSTART, RLENGTH) + } +} END { if ( num == "true" ) { tokencount = split (CCversion,vertoken,".") |