SConstruct (10456:1e2cf7b3e9d4) SConstruct (10457:c0302ad57921)
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

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

184AddLocalOption('--verbose', dest='verbose', action='store_true',
185 help='Print full tool command lines')
186AddLocalOption('--without-python', dest='without_python',
187 action='store_true',
188 help='Build without Python configuration support')
189AddLocalOption('--without-tcmalloc', dest='without_tcmalloc',
190 action='store_true',
191 help='Disable linking against tcmalloc')
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

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

184AddLocalOption('--verbose', dest='verbose', action='store_true',
185 help='Print full tool command lines')
186AddLocalOption('--without-python', dest='without_python',
187 action='store_true',
188 help='Build without Python configuration support')
189AddLocalOption('--without-tcmalloc', dest='without_tcmalloc',
190 action='store_true',
191 help='Disable linking against tcmalloc')
192AddLocalOption('--with-ubsan', dest='with_ubsan', action='store_true',
193 help='Build with Undefined Behavior Sanitizer if available')
192
193termcap = get_termcap(GetOption('use_colors'))
194
195########################################################################
196#
197# Set up the main build environment.
198#
199########################################################################

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

597 if not as_version or compareVersions(as_version[-1], "2.23") < 0:
598 print termcap.Yellow + termcap.Bold + \
599 'Warning: This combination of gcc and binutils have' + \
600 ' known incompatibilities.\n' + \
601 ' If you encounter build problems, please update ' + \
602 'binutils to 2.23.' + \
603 termcap.Normal
604
194
195termcap = get_termcap(GetOption('use_colors'))
196
197########################################################################
198#
199# Set up the main build environment.
200#
201########################################################################

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

599 if not as_version or compareVersions(as_version[-1], "2.23") < 0:
600 print termcap.Yellow + termcap.Bold + \
601 'Warning: This combination of gcc and binutils have' + \
602 ' known incompatibilities.\n' + \
603 ' If you encounter build problems, please update ' + \
604 'binutils to 2.23.' + \
605 termcap.Normal
606
607 # Make sure we warn if the user has requested to compile with the
608 # Undefined Benahvior Sanitizer and this version of gcc does not
609 # support it.
610 if GetOption('with_ubsan') and \
611 compareVersions(gcc_version, '4.9') < 0:
612 print termcap.Yellow + termcap.Bold + \
613 'Warning: UBSan is only supported using gcc 4.9 and later.' + \
614 termcap.Normal
615
605 # Add the appropriate Link-Time Optimization (LTO) flags
606 # unless LTO is explicitly turned off. Note that these flags
607 # are only used by the fast target.
608 if not GetOption('no_lto'):
609 # Pass the LTO flag when compiling to produce GIMPLE
610 # output, we merely create the flags here and only append
611 # them later
612 main['LTO_CCFLAGS'] = ['-flto=%d' % GetOption('num_jobs')]

--- 782 unchanged lines hidden ---
616 # Add the appropriate Link-Time Optimization (LTO) flags
617 # unless LTO is explicitly turned off. Note that these flags
618 # are only used by the fast target.
619 if not GetOption('no_lto'):
620 # Pass the LTO flag when compiling to produce GIMPLE
621 # output, we merely create the flags here and only append
622 # them later
623 main['LTO_CCFLAGS'] = ['-flto=%d' % GetOption('num_jobs')]

--- 782 unchanged lines hidden ---