SConstruct (10384:fa66d9c5e180) | SConstruct (10416:dd64a2984966) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2013 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 --- 588 unchanged lines hidden (view full) --- 597 termcap.Normal 598 599 # Add the appropriate Link-Time Optimization (LTO) flags 600 # unless LTO is explicitly turned off. Note that these flags 601 # are only used by the fast target. 602 if not GetOption('no_lto'): 603 # Pass the LTO flag when compiling to produce GIMPLE 604 # output, we merely create the flags here and only append | 1# -*- mode:python -*- 2 3# Copyright (c) 2013 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 --- 588 unchanged lines hidden (view full) --- 597 termcap.Normal 598 599 # Add the appropriate Link-Time Optimization (LTO) flags 600 # unless LTO is explicitly turned off. Note that these flags 601 # are only used by the fast target. 602 if not GetOption('no_lto'): 603 # Pass the LTO flag when compiling to produce GIMPLE 604 # output, we merely create the flags here and only append |
605 # them later/ | 605 # them later |
606 main['LTO_CCFLAGS'] = ['-flto=%d' % GetOption('num_jobs')] 607 608 # Use the same amount of jobs for LTO as we are running | 606 main['LTO_CCFLAGS'] = ['-flto=%d' % GetOption('num_jobs')] 607 608 # Use the same amount of jobs for LTO as we are running |
609 # scons with, we hardcode the use of the linker plugin 610 # which requires either gold or GNU ld >= 2.21 611 main['LTO_LDFLAGS'] = ['-flto=%d' % GetOption('num_jobs'), 612 '-fuse-linker-plugin'] | 609 # scons with 610 main['LTO_LDFLAGS'] = ['-flto=%d' % GetOption('num_jobs')] |
613 614 main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc', 615 '-fno-builtin-realloc', '-fno-builtin-free']) 616 617elif main['CLANG']: 618 # Check for a supported version of clang, >= 3.0 is needed to 619 # support similar features as gcc 4.6. See 620 # http://clang.llvm.org/cxx_status.html for details --- 751 unchanged lines hidden --- | 611 612 main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc', 613 '-fno-builtin-realloc', '-fno-builtin-free']) 614 615elif main['CLANG']: 616 # Check for a supported version of clang, >= 3.0 is needed to 617 # support similar features as gcc 4.6. See 618 # http://clang.llvm.org/cxx_status.html for details --- 751 unchanged lines hidden --- |