SConstruct (10068:7867c5f28b90) SConstruct (10106:b7e7533097b9)
1# -*- mode:python -*-
2
3# Copyright (c) 2013 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

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

603 main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc',
604 '-fno-builtin-realloc', '-fno-builtin-free'])
605
606elif main['CLANG']:
607 # Check for a supported version of clang, >= 2.9 is needed to
608 # support similar features as gcc 4.4. See
609 # http://clang.llvm.org/cxx_status.html for details
610 clang_version_re = re.compile(".* version (\d+\.\d+)")
1# -*- mode:python -*-
2
3# Copyright (c) 2013 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

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

603 main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc',
604 '-fno-builtin-realloc', '-fno-builtin-free'])
605
606elif main['CLANG']:
607 # Check for a supported version of clang, >= 2.9 is needed to
608 # support similar features as gcc 4.4. See
609 # http://clang.llvm.org/cxx_status.html for details
610 clang_version_re = re.compile(".* version (\d+\.\d+)")
611 clang_version_match = clang_version_re.match(CXX_version)
611 clang_version_match = clang_version_re.search(CXX_version)
612 if (clang_version_match):
613 clang_version = clang_version_match.groups()[0]
614 if compareVersions(clang_version, "2.9") < 0:
615 print 'Error: clang version 2.9 or newer required.'
616 print ' Installed version:', clang_version
617 Exit(1)
618 else:
619 print 'Error: Unable to determine clang version.'

--- 697 unchanged lines hidden ---
612 if (clang_version_match):
613 clang_version = clang_version_match.groups()[0]
614 if compareVersions(clang_version, "2.9") < 0:
615 print 'Error: clang version 2.9 or newer required.'
616 print ' Installed version:', clang_version
617 Exit(1)
618 else:
619 print 'Error: Unable to determine clang version.'

--- 697 unchanged lines hidden ---