This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Commit: Fix check_lto_available proc
- From: Alan Modra <amodra at gmail dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 7 Jul 2014 23:31:27 +0930
- Subject: Re: Commit: Fix check_lto_available proc
- Authentication-results: sourceware.org; auth=none
- References: <87y4w5p9qu dot fsf at redhat dot com>
On Mon, Jul 07, 2014 at 02:40:57PM +0100, Nick Clifton wrote:
> diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
> index a657a97..9f7a414 100644
> --- a/ld/testsuite/lib/ld-lib.exp
> +++ b/ld/testsuite/lib/ld-lib.exp
> @@ -1666,6 +1666,10 @@ proc check_lto_available { } {
> global CC
>
> 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
> set flags ""
> if [board_info [target_info name] exists cflags] {
I removed that test a few hours ago, thinking that the test in
run_host_cmd would be sufficient. :-( What did I miss?
--
Alan Modra
Australia Development Lab, IBM