diff options
-rw-r--r-- | ld/testsuite/config/default.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp index 59a45e3..5c92547 100644 --- a/ld/testsuite/config/default.exp +++ b/ld/testsuite/config/default.exp @@ -383,6 +383,7 @@ proc compiler_supports { flag args } { append flags " [board_info [target_info name] ldflags]" } set fn "cs[pid].c" + set rfno "cs[pid].exe" set f [open $fn "w"] if { [llength $args] > 0 } { puts $f [lindex $args 0] @@ -391,7 +392,8 @@ proc compiler_supports { flag args } { } close $f set rfn [remote_download host $fn] - set avail [run_host_cmd_yesno "$CC_FOR_TARGET" "$flags $flag $rfn -o /dev/null"] + set avail [run_host_cmd_yesno "$CC_FOR_TARGET" "$flags $flag $rfn -o $rfno"] + remote_file host delete $rfno remote_file host delete $rfn file delete $fn return $avail |