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 # 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 --- |