SConstruct (13020:b5f05a988593) | SConstruct (13027:542176b23324) |
---|---|
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 --- 407 unchanged lines hidden (view full) --- 416 # 417 # https://gcc.gnu.org/gcc-6/changes.html 418 # https://gcc.gnu.org/ml/gcc-patches/2015-11/msg03161.html 419 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69866 420 if not GetOption('force_lto'): 421 main.Append(PSHLINKFLAGS='-flinker-output=rel') 422 main.Append(PLINKFLAGS='-flinker-output=rel') 423 | 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 --- 407 unchanged lines hidden (view full) --- 416 # 417 # https://gcc.gnu.org/gcc-6/changes.html 418 # https://gcc.gnu.org/ml/gcc-patches/2015-11/msg03161.html 419 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69866 420 if not GetOption('force_lto'): 421 main.Append(PSHLINKFLAGS='-flinker-output=rel') 422 main.Append(PLINKFLAGS='-flinker-output=rel') 423 |
424 # gcc from version 4.8 and above generates "rep; ret" instructions 425 # to avoid performance penalties on certain AMD chips. Older 426 # assemblers detect this as an error, "Error: expecting string 427 # instruction after `rep'" 428 as_version_raw = readCommand([main['AS'], '-v', '/dev/null', 429 '-o', '/dev/null'], 430 exception=False).split() 431 432 # version strings may contain extra distro-specific 433 # qualifiers, so play it safe and keep only what comes before 434 # the first hyphen 435 as_version = as_version_raw[-1].split('-')[0] if as_version_raw else None 436 437 if not as_version or compareVersions(as_version, "2.23") < 0: 438 print(termcap.Yellow + termcap.Bold + 439 'Warning: This combination of gcc and binutils have' + 440 ' known incompatibilities.\n' + 441 ' If you encounter build problems, please update ' + 442 'binutils to 2.23.' + 443 termcap.Normal) 444 | |
445 # Make sure we warn if the user has requested to compile with the 446 # Undefined Benahvior Sanitizer and this version of gcc does not 447 # support it. 448 if GetOption('with_ubsan') and \ 449 compareVersions(gcc_version, '4.9') < 0: 450 print(termcap.Yellow + termcap.Bold + 451 'Warning: UBSan is only supported using gcc 4.9 and later.' + 452 termcap.Normal) --- 820 unchanged lines hidden --- | 424 # Make sure we warn if the user has requested to compile with the 425 # Undefined Benahvior Sanitizer and this version of gcc does not 426 # support it. 427 if GetOption('with_ubsan') and \ 428 compareVersions(gcc_version, '4.9') < 0: 429 print(termcap.Yellow + termcap.Bold + 430 'Warning: UBSan is only supported using gcc 4.9 and later.' + 431 termcap.Normal) --- 820 unchanged lines hidden --- |