mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
* lib/ld.exp (default_ld_compile): If cc argument is multiple words, use only
the first when trying to verify the availability of the compiler.
This commit is contained in:
@ -106,9 +106,13 @@ proc default_ld_compile { cc source object } {
|
|||||||
global CFLAGS
|
global CFLAGS
|
||||||
global srcdir
|
global srcdir
|
||||||
global subdir
|
global subdir
|
||||||
|
|
||||||
if {[which $cc] == 0} then {
|
set cc_prog $cc
|
||||||
perror "$cc does not exist"
|
if {[llength $cc_prog] > 1} then {
|
||||||
|
set cc_prog [lindex $cc_prog 0]
|
||||||
|
}
|
||||||
|
if {[which $cc_prog] == 0} then {
|
||||||
|
perror "$cc_prog does not exist"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user