Browse Source

Use host_info procedure to probe for a host configuration, instead of checking a local empty target_info array due to lacking global target_info.

farm
Jacob Bachmeyer 6 years ago
committed by Rob Savoye
parent
commit
186b7fbb31
  1. 6
      ChangeLog
  2. 2
      lib/target.exp

6
ChangeLog

@ -1,3 +1,9 @@
2020-05-20 Jacob Bachmeyer <jcb62281+dev@gmail.com>
* lib/target.exp (default_target_compile): Use "host_info"
procedure to probe for a host configuration, instead of checking a
local empty target_info array due to lacking "global target_info".
2020-05-20 Jacob Bachmeyer <jcb62281+dev@gmail.com>
* doc/dejagnu.texi (Adding a new board): Document that the

2
lib/target.exp

@ -326,7 +326,7 @@ proc default_target_compile {source destfile type options} {
append ldflags " $LDFLAGS_FOR_TARGET"
}
if {[info exists target_info(host,name)]} {
if {[host_info exists]} {
set host [host_info name]
} else {
set host "unix"

Loading…
Cancel
Save