SConstruct (12563:8d59ed22ae79) | SConstruct (12617:50e248e0788b) |
---|---|
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 --- 464 unchanged lines hidden (view full) --- 473 474 # Use the same amount of jobs for LTO as we are running 475 # scons with 476 main['LTO_LDFLAGS'] = ['-flto=%d' % GetOption('num_jobs')] 477 478 main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc', 479 '-fno-builtin-realloc', '-fno-builtin-free']) 480 | 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 --- 464 unchanged lines hidden (view full) --- 473 474 # Use the same amount of jobs for LTO as we are running 475 # scons with 476 main['LTO_LDFLAGS'] = ['-flto=%d' % GetOption('num_jobs')] 477 478 main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc', 479 '-fno-builtin-realloc', '-fno-builtin-free']) 480 |
481 # add option to check for undeclared overrides 482 if compareVersions(gcc_version, "5.0") > 0: 483 main.Append(CCFLAGS=['-Wno-error=suggest-override']) 484 | |
485 # The address sanitizer is available for gcc >= 4.8 486 if GetOption('with_asan'): 487 if GetOption('with_ubsan') and \ 488 compareVersions(env['GCC_VERSION'], '4.9') >= 0: 489 env.Append(CCFLAGS=['-fsanitize=address,undefined', 490 '-fno-omit-frame-pointer'], 491 LINKFLAGS='-fsanitize=address,undefined') 492 else: --- 776 unchanged lines hidden --- | 481 # The address sanitizer is available for gcc >= 4.8 482 if GetOption('with_asan'): 483 if GetOption('with_ubsan') and \ 484 compareVersions(env['GCC_VERSION'], '4.9') >= 0: 485 env.Append(CCFLAGS=['-fsanitize=address,undefined', 486 '-fno-omit-frame-pointer'], 487 LINKFLAGS='-fsanitize=address,undefined') 488 else: --- 776 unchanged lines hidden --- |