SConstruct (10860:cba0f26038b4) | SConstruct (10866:0421e52a57af) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015 ARM Limited 4# All rights reserved. 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 585 unchanged lines hidden (view full) --- 594 595 main['GCC_VERSION'] = gcc_version 596 597 # gcc from version 4.8 and above generates "rep; ret" instructions 598 # to avoid performance penalties on certain AMD chips. Older 599 # assemblers detect this as an error, "Error: expecting string 600 # instruction after `rep'" 601 if compareVersions(gcc_version, "4.8") > 0: | 1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015 ARM Limited 4# All rights reserved. 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 585 unchanged lines hidden (view full) --- 594 595 main['GCC_VERSION'] = gcc_version 596 597 # gcc from version 4.8 and above generates "rep; ret" instructions 598 # to avoid performance penalties on certain AMD chips. Older 599 # assemblers detect this as an error, "Error: expecting string 600 # instruction after `rep'" 601 if compareVersions(gcc_version, "4.8") > 0: |
602 as_version = readCommand([main['AS'], '-v', '/dev/null'], 603 exception=False).split() | 602 as_version_raw = readCommand([main['AS'], '-v', '/dev/null'], 603 exception=False).split() |
604 | 604 |
605 if not as_version or compareVersions(as_version[-1], "2.23") < 0: | 605 # version strings may contain extra distro-specific 606 # qualifiers, so play it safe and keep only what comes before 607 # the first hyphen 608 as_version = as_version_raw[-1].split('-')[0] if as_version_raw \ 609 else None 610 611 if not as_version or compareVersions(as_version, "2.23") < 0: |
606 print termcap.Yellow + termcap.Bold + \ 607 'Warning: This combination of gcc and binutils have' + \ 608 ' known incompatibilities.\n' + \ 609 ' If you encounter build problems, please update ' + \ 610 'binutils to 2.23.' + \ 611 termcap.Normal 612 613 # Make sure we warn if the user has requested to compile with the --- 817 unchanged lines hidden --- | 612 print termcap.Yellow + termcap.Bold + \ 613 'Warning: This combination of gcc and binutils have' + \ 614 ' known incompatibilities.\n' + \ 615 ' If you encounter build problems, please update ' + \ 616 'binutils to 2.23.' + \ 617 termcap.Normal 618 619 # Make sure we warn if the user has requested to compile with the --- 817 unchanged lines hidden --- |