Deleted Added
sdiff udiff text old ( 12246:9ffa51416f39 ) new ( 12304:299452fa8cc4 )
full compact
1# -*- mode:python -*-
2
3# Copyright (c) 2013, 2015-2017 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

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

468
469 main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc',
470 '-fno-builtin-realloc', '-fno-builtin-free'])
471
472 # add option to check for undeclared overrides
473 if compareVersions(gcc_version, "5.0") > 0:
474 main.Append(CCFLAGS=['-Wno-error=suggest-override'])
475
476elif main['CLANG']:
477 # Check for a supported version of clang, >= 3.1 is needed to
478 # support similar features as gcc 4.8. See
479 # http://clang.llvm.org/cxx_status.html for details
480 clang_version_re = re.compile(".* version (\d+\.\d+)")
481 clang_version_match = clang_version_re.search(CXX_version)
482 if (clang_version_match):
483 clang_version = clang_version_match.groups()[0]

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

508 if sys.platform == "darwin":
509 main.Append(CXXFLAGS=['-stdlib=libc++'])
510 main.Append(LIBS=['c++'])
511
512 # On FreeBSD we need libthr.
513 if sys.platform.startswith('freebsd'):
514 main.Append(LIBS=['thr'])
515
516else:
517 print termcap.Yellow + termcap.Bold + 'Error' + termcap.Normal,
518 print "Don't know what compiler options to use for your compiler."
519 print termcap.Yellow + ' compiler:' + termcap.Normal, main['CXX']
520 print termcap.Yellow + ' version:' + termcap.Normal,
521 if not CXX_version:
522 print termcap.Yellow + termcap.Bold + "COMMAND NOT FOUND!" +\
523 termcap.Normal

--- 697 unchanged lines hidden ---