mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
sim: testsuite: drop sim_compile cover function
Most code isn't using this, and the only call site (in one cris file) can use target_compile directly. So switch it over to simplify.
This commit is contained in:
@ -189,7 +189,7 @@ foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
|
||||
verbose -log "Compiling $src with $opts(cc)"
|
||||
|
||||
set dest "$opts(dest)"
|
||||
if { [sim_compile $src $dest "executable" "$opts(cc)" ] != "" } {
|
||||
if { [target_compile $src $dest "executable" "$opts(cc)" ] != "" } {
|
||||
unresolved $testname
|
||||
continue
|
||||
}
|
||||
|
@ -35,19 +35,6 @@ proc sim_version {} {
|
||||
clone_output "$sim_path $version\n"
|
||||
}
|
||||
|
||||
# Cover function to target_compile.
|
||||
# Copied from gdb_compile.
|
||||
|
||||
proc sim_compile { source dest type options } {
|
||||
set result [target_compile $source $dest $type $options]
|
||||
regsub "\[\r\n\]*$" "$result" "" result
|
||||
regsub "^\[\r\n\]*" "$result" "" result
|
||||
if { $result != "" } {
|
||||
clone_output "sim compile output: $result"
|
||||
}
|
||||
return $result
|
||||
}
|
||||
|
||||
# Find the path to the simulator for executing.
|
||||
proc sim_tool_path {} {
|
||||
global sim_path
|
||||
|
Reference in New Issue
Block a user