SConstruct (13027:542176b23324) | SConstruct (13421:79af503161d7) |
---|---|
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 --- 131 unchanged lines hidden (view full) --- 140 help="Don't add color to abbreviated scons output") 141AddLocalOption('--with-cxx-config', dest='with_cxx_config', 142 action='store_true', 143 help="Build with support for C++-based configuration") 144AddLocalOption('--default', dest='default', type='string', action='store', 145 help='Override which build_opts file to use for defaults') 146AddLocalOption('--ignore-style', dest='ignore_style', action='store_true', 147 help='Disable style checking hooks') | 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 --- 131 unchanged lines hidden (view full) --- 140 help="Don't add color to abbreviated scons output") 141AddLocalOption('--with-cxx-config', dest='with_cxx_config', 142 action='store_true', 143 help="Build with support for C++-based configuration") 144AddLocalOption('--default', dest='default', type='string', action='store', 145 help='Override which build_opts file to use for defaults') 146AddLocalOption('--ignore-style', dest='ignore_style', action='store_true', 147 help='Disable style checking hooks') |
148AddLocalOption('--gold-linker', dest='gold_linker', action='store_true', 149 help='Use the gold linker') |
|
148AddLocalOption('--no-lto', dest='no_lto', action='store_true', 149 help='Disable Link-Time Optimization for fast') 150AddLocalOption('--force-lto', dest='force_lto', action='store_true', 151 help='Use Link-Time Optimization instead of partial linking' + 152 ' when the compiler doesn\'t support using them together.') 153AddLocalOption('--update-ref', dest='update_ref', action='store_true', 154 help='Update test reference outputs') 155AddLocalOption('--verbose', dest='verbose', action='store_true', --- 196 unchanged lines hidden (view full) --- 352 # We always compile using C++11 353 main.Append(CXXFLAGS=['-std=c++11']) 354 if sys.platform.startswith('freebsd'): 355 main.Append(CCFLAGS=['-I/usr/local/include']) 356 main.Append(CXXFLAGS=['-I/usr/local/include']) 357 358 main['FILTER_PSHLINKFLAGS'] = lambda x: str(x).replace(' -shared', '') 359 main['PSHLINKFLAGS'] = main.subst('${FILTER_PSHLINKFLAGS(SHLINKFLAGS)}') | 150AddLocalOption('--no-lto', dest='no_lto', action='store_true', 151 help='Disable Link-Time Optimization for fast') 152AddLocalOption('--force-lto', dest='force_lto', action='store_true', 153 help='Use Link-Time Optimization instead of partial linking' + 154 ' when the compiler doesn\'t support using them together.') 155AddLocalOption('--update-ref', dest='update_ref', action='store_true', 156 help='Update test reference outputs') 157AddLocalOption('--verbose', dest='verbose', action='store_true', --- 196 unchanged lines hidden (view full) --- 354 # We always compile using C++11 355 main.Append(CXXFLAGS=['-std=c++11']) 356 if sys.platform.startswith('freebsd'): 357 main.Append(CCFLAGS=['-I/usr/local/include']) 358 main.Append(CXXFLAGS=['-I/usr/local/include']) 359 360 main['FILTER_PSHLINKFLAGS'] = lambda x: str(x).replace(' -shared', '') 361 main['PSHLINKFLAGS'] = main.subst('${FILTER_PSHLINKFLAGS(SHLINKFLAGS)}') |
362 if GetOption('gold_linker'): 363 main.Append(LINKFLAGS='-fuse-ld=gold') |
|
360 main['PLINKFLAGS'] = main.subst('${LINKFLAGS}') 361 shared_partial_flags = ['-r', '-nostdlib'] 362 main.Append(PSHLINKFLAGS=shared_partial_flags) 363 main.Append(PLINKFLAGS=shared_partial_flags) 364 365 # Treat warnings as errors but white list some warnings that we 366 # want to allow (e.g., deprecation warnings). 367 main.Append(CCFLAGS=['-Werror', --- 884 unchanged lines hidden --- | 364 main['PLINKFLAGS'] = main.subst('${LINKFLAGS}') 365 shared_partial_flags = ['-r', '-nostdlib'] 366 main.Append(PSHLINKFLAGS=shared_partial_flags) 367 main.Append(PLINKFLAGS=shared_partial_flags) 368 369 # Treat warnings as errors but white list some warnings that we 370 # want to allow (e.g., deprecation warnings). 371 main.Append(CCFLAGS=['-Werror', --- 884 unchanged lines hidden --- |