SConstruct (11887:f08918a690cf) SConstruct (11925:cc1e01a99561)
1# -*- mode:python -*-
2
3# Copyright (c) 2013, 2015, 2016 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

--- 699 unchanged lines hidden (view full) ---

708 Exit(1)
709
710 main['GCC_VERSION'] = gcc_version
711
712 # gcc from version 4.8 and above generates "rep; ret" instructions
713 # to avoid performance penalties on certain AMD chips. Older
714 # assemblers detect this as an error, "Error: expecting string
715 # instruction after `rep'"
1# -*- mode:python -*-
2
3# Copyright (c) 2013, 2015, 2016 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

--- 699 unchanged lines hidden (view full) ---

708 Exit(1)
709
710 main['GCC_VERSION'] = gcc_version
711
712 # gcc from version 4.8 and above generates "rep; ret" instructions
713 # to avoid performance penalties on certain AMD chips. Older
714 # assemblers detect this as an error, "Error: expecting string
715 # instruction after `rep'"
716 as_version_raw = readCommand([main['AS'], '-v', '/dev/null'],
716 as_version_raw = readCommand([main['AS'], '-v', '/dev/null',
717 '-o', '/dev/null'],
717 exception=False).split()
718
719 # version strings may contain extra distro-specific
720 # qualifiers, so play it safe and keep only what comes before
721 # the first hyphen
722 as_version = as_version_raw[-1].split('-')[0] if as_version_raw else None
723
724 if not as_version or compareVersions(as_version, "2.23") < 0:

--- 867 unchanged lines hidden ---
718 exception=False).split()
719
720 # version strings may contain extra distro-specific
721 # qualifiers, so play it safe and keep only what comes before
722 # the first hyphen
723 as_version = as_version_raw[-1].split('-')[0] if as_version_raw else None
724
725 if not as_version or compareVersions(as_version, "2.23") < 0:

--- 867 unchanged lines hidden ---