SConstruct (12304:299452fa8cc4) SConstruct (12305:b6ebf3d20329)
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

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

354 main.Append(CXXFLAGS=['-I/usr/local/include'])
355
356 main['FILTER_PSHLINKFLAGS'] = lambda x: str(x).replace(' -shared', '')
357 main['PSHLINKFLAGS'] = main.subst('${FILTER_PSHLINKFLAGS(SHLINKFLAGS)}')
358 main['PLINKFLAGS'] = main.subst('${LINKFLAGS}')
359 shared_partial_flags = ['-r', '-nostdlib']
360 main.Append(PSHLINKFLAGS=shared_partial_flags)
361 main.Append(PLINKFLAGS=shared_partial_flags)
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

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

354 main.Append(CXXFLAGS=['-I/usr/local/include'])
355
356 main['FILTER_PSHLINKFLAGS'] = lambda x: str(x).replace(' -shared', '')
357 main['PSHLINKFLAGS'] = main.subst('${FILTER_PSHLINKFLAGS(SHLINKFLAGS)}')
358 main['PLINKFLAGS'] = main.subst('${LINKFLAGS}')
359 shared_partial_flags = ['-r', '-nostdlib']
360 main.Append(PSHLINKFLAGS=shared_partial_flags)
361 main.Append(PLINKFLAGS=shared_partial_flags)
362
363 # Treat warnings as errors but white list some warnings that we
364 # want to allow (e.g., deprecation warnings).
365 main.Append(CCFLAGS=['-Werror',
366 '-Wno-error=deprecated-declarations',
367 '-Wno-error=deprecated',
368 ])
362else:
363 print termcap.Yellow + termcap.Bold + 'Error' + termcap.Normal,
364 print "Don't know what compiler options to use for your compiler."
365 print termcap.Yellow + ' compiler:' + termcap.Normal, main['CXX']
366 print termcap.Yellow + ' version:' + termcap.Normal,
367 if not CXX_version:
368 print termcap.Yellow + termcap.Bold + "COMMAND NOT FOUND!" +\
369 termcap.Normal

--- 886 unchanged lines hidden ---
369else:
370 print termcap.Yellow + termcap.Bold + 'Error' + termcap.Normal,
371 print "Don't know what compiler options to use for your compiler."
372 print termcap.Yellow + ' compiler:' + termcap.Normal, main['CXX']
373 print termcap.Yellow + ' version:' + termcap.Normal,
374 if not CXX_version:
375 print termcap.Yellow + termcap.Bold + "COMMAND NOT FOUND!" +\
376 termcap.Normal

--- 886 unchanged lines hidden ---