mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
This patch prevents a linker testsuite error if the checks are run with a
toolchain that just contains the binutils - ie without a compiler. * lib/ld-lib.exp (check_lto_available): Check that a compiler is available before testing for LTO support.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2014-07-07 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* lib/ld-lib.exp (check_lto_available): Check that a compiler is
|
||||||
|
available before testing for LTO support.
|
||||||
|
|
||||||
2014-07-07 Alan Modra <amodra@gmail.com>
|
2014-07-07 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* config/default.exp: Don't make tmpdir/gas. Put as symlink into
|
* config/default.exp: Don't make tmpdir/gas. Put as symlink into
|
||||||
|
@ -1666,6 +1666,10 @@ proc check_lto_available { } {
|
|||||||
global CC
|
global CC
|
||||||
|
|
||||||
if {![info exists lto_available_saved]} {
|
if {![info exists lto_available_saved]} {
|
||||||
|
if { [which $CC] == 0 } {
|
||||||
|
set lto_available_saved 0
|
||||||
|
return 0
|
||||||
|
}
|
||||||
# Check if gcc supports -flto -fuse-linker-plugin
|
# Check if gcc supports -flto -fuse-linker-plugin
|
||||||
set flags ""
|
set flags ""
|
||||||
if [board_info [target_info name] exists cflags] {
|
if [board_info [target_info name] exists cflags] {
|
||||||
|
Reference in New Issue
Block a user