SConstruct (11476:8c67ac296e75) SConstruct (11497:bfed9fdf0ac7)
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

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

728
729 # Use the same amount of jobs for LTO as we are running
730 # scons with
731 main['LTO_LDFLAGS'] = ['-flto=%d' % GetOption('num_jobs')]
732
733 main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc',
734 '-fno-builtin-realloc', '-fno-builtin-free'])
735
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

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

728
729 # Use the same amount of jobs for LTO as we are running
730 # scons with
731 main['LTO_LDFLAGS'] = ['-flto=%d' % GetOption('num_jobs')]
732
733 main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc',
734 '-fno-builtin-realloc', '-fno-builtin-free'])
735
736 # add option to check for undeclared overrides
737 if compareVersions(gcc_version, "5.0") > 0:
738 main.Append(CCFLAGS=['-Wno-error=suggest-override'])
739
736elif main['CLANG']:
737 # Check for a supported version of clang, >= 3.1 is needed to
738 # support similar features as gcc 4.7. See
739 # http://clang.llvm.org/cxx_status.html for details
740 clang_version_re = re.compile(".* version (\d+\.\d+)")
741 clang_version_match = clang_version_re.search(CXX_version)
742 if (clang_version_match):
743 clang_version = clang_version_match.groups()[0]

--- 807 unchanged lines hidden ---
740elif main['CLANG']:
741 # Check for a supported version of clang, >= 3.1 is needed to
742 # support similar features as gcc 4.7. See
743 # http://clang.llvm.org/cxx_status.html for details
744 clang_version_re = re.compile(".* version (\d+\.\d+)")
745 clang_version_match = clang_version_re.search(CXX_version)
746 if (clang_version_match):
747 clang_version = clang_version_match.groups()[0]

--- 807 unchanged lines hidden ---