mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-12 09:39:30 +08:00
* lib/ld.exp (default_ld_version): Fix for current version
printing.
This commit is contained in:
@ -12,10 +12,9 @@ proc default_ld_version { ld } {
|
|||||||
|
|
||||||
catch "exec $ld --version" tmp
|
catch "exec $ld --version" tmp
|
||||||
set tmp [prune_system_crud $host_triplet $tmp]
|
set tmp [prune_system_crud $host_triplet $tmp]
|
||||||
regexp "version.*$" $tmp version
|
regexp "\[^\n\]* (cygnus-|)(\[-0-9.a-zA-Z-\]+)\[\r\n\].*" $tmp version cyg number
|
||||||
|
if [info exists number] then {
|
||||||
if [info exists version] then {
|
clone_output "$ld $number\n"
|
||||||
clone_output "$ld $version\n"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user